diff options
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r-- | source4/librpc/ndr/ndr_basic.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c index 6208943d94..b50b614b92 100644 --- a/source4/librpc/ndr/ndr_basic.c +++ b/source4/librpc/ndr/ndr_basic.c @@ -397,9 +397,12 @@ NTSTATUS ndr_push_offset_ptr(struct ndr_push *ndr, /* push a GUID */ -NTSTATUS ndr_push_GUID(struct ndr_push *ndr, GUID *guid) +NTSTATUS ndr_push_GUID(struct ndr_push *ndr, int ndr_flags, GUID *guid) { - return ndr_push_bytes(ndr, guid->info, GUID_SIZE); + if (ndr_flags & NDR_SCALARS) { + return ndr_push_bytes(ndr, guid->info, GUID_SIZE); + } + return NT_STATUS_OK; } /* |