mirror of
https://github.com/samba-team/samba.git
synced 2025-09-14 21:44:19 +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:
@@ -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_PULL_NEED_BYTES(ndr, r->message_length);
|
||||||
ndr->data_size = ndr->offset + r->message_length;
|
ndr->data_size = ndr->offset + r->message_length;
|
||||||
ndr->offset = saved_offset;
|
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_CHECK(ndr_pull_negoex_PAYLOAD(ndr, NDR_BUFFERS, &r->p));
|
||||||
ndr->offset = ndr->data_size;
|
ndr->offset = ndr->data_size;
|
||||||
ndr->data_size = start_data_size;
|
ndr->data_size = start_data_size;
|
||||||
|
Reference in New Issue
Block a user