diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-12 10:16:50 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-20 17:37:19 +0100 |
commit | 6b123607c8afa30a7f9dc62101063eb8a9a00779 (patch) | |
tree | 5fbb2991afcd9ad0610ba4e6c52d2d3f89088b8c /source3 | |
parent | 6568a26f0142950300ae8503b8bc2bffb8a77352 (diff) | |
download | samba-6b123607c8afa30a7f9dc62101063eb8a9a00779.tar.gz samba-6b123607c8afa30a7f9dc62101063eb8a9a00779.tar.bz2 samba-6b123607c8afa30a7f9dc62101063eb8a9a00779.zip |
s3:librpc: add support for PFC_FLAG_OBJECT_UUID when parsing packets (bug #9382)
Now the logic matches the one in dcerpc_read_ncacn_packet_done().
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/rpc/dcerpc_helpers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c index 5f8c793191..d36c2da383 100644 --- a/source3/librpc/rpc/dcerpc_helpers.c +++ b/source3/librpc/rpc/dcerpc_helpers.c @@ -111,6 +111,10 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx, 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, r); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { |