From: Andrew Bartlett Date: Wed, 4 Dec 2019 02:30:55 +0000 (+1300) Subject: librpc: Set the switch_value before NDR_BUFFERS to prepare for new libndr behaviour X-Git-Tag: ldb-2.1.0~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7bcf227f7bac1817ecabbe3dccaebdd9a81a2f9;p=thirdparty%2Fsamba.git librpc: 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 Reviewed-by: Gary Lockyer --- diff --git a/librpc/ndr/ndr_sec_helper.c b/librpc/ndr/ndr_sec_helper.c index b9e10cca27f..3adb46f5b9c 100644 --- a/librpc/ndr/ndr_sec_helper.c +++ b/librpc/ndr/ndr_sec_helper.c @@ -81,6 +81,7 @@ enum ndr_err_code ndr_pull_security_ace(struct ndr_pull *ndr, int ndr_flags, str ndr->offset += pad; } if (ndr_flags & NDR_BUFFERS) { + NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->object, r->type)); NDR_CHECK(ndr_pull_security_ace_object_ctr(ndr, NDR_BUFFERS, &r->object)); } return NDR_ERR_SUCCESS;