mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
negoex: Set the switch_value before NDR_BUFFERS to prepare for new libndr behaviour
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13876 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
ae43093b79
commit
a22a22e4a8
@ -439,6 +439,7 @@ enum ndr_err_code ndr_pull_negoex_MESSAGE(struct ndr_pull *ndr, int ndr_flags, s
|
||||
NDR_PULL_NEED_BYTES(ndr, r->message_length);
|
||||
ndr->data_size = ndr->offset + r->message_length;
|
||||
ndr->offset = saved_offset;
|
||||
NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->p, r->type));
|
||||
NDR_CHECK(ndr_pull_negoex_PAYLOAD(ndr, NDR_BUFFERS, &r->p));
|
||||
ndr->offset = ndr->data_size;
|
||||
ndr->data_size = start_data_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user