summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-04-03 19:57:03 +0200
committerStefan Metzmacher <metze@samba.org>2012-04-03 23:06:30 +0200
commit0971a4ee6cd23f4a864c47d49e3899d00122e6e5 (patch)
tree4ca6e3b4a80badde53e3a4203f42eb82f7034682
parent05ceb53dda1ac5e17c02dc42018636312cde2170 (diff)
downloadsamba-0971a4ee6cd23f4a864c47d49e3899d00122e6e5.tar.gz
samba-0971a4ee6cd23f4a864c47d49e3899d00122e6e5.tar.bz2
samba-0971a4ee6cd23f4a864c47d49e3899d00122e6e5.zip
s4:librpc/rpc: also parse ncacn_packet pdus with LIBNDR_FLAG_OBJECT_PRESENT
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Apr 3 23:06:31 CEST 2012 on sn-devel-104
-rw-r--r--source4/librpc/rpc/dcerpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 5d286c83c0..4cec4b596c 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -683,6 +683,10 @@ static NTSTATUS ncacn_pull(struct dcecli_connection *c, DATA_BLOB *blob, TALLOC_
ndr->flags |= LIBNDR_FLAG_BIGENDIAN;
}
+ if (CVAL(blob->data, DCERPC_PFC_OFFSET) & DCERPC_PFC_FLAG_OBJECT_UUID) {
+ ndr->flags |= LIBNDR_FLAG_OBJECT_PRESENT;
+ }
+
ndr_err = ndr_pull_ncacn_packet(ndr, NDR_SCALARS|NDR_BUFFERS, pkt);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
return ndr_map_error2ntstatus(ndr_err);