summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-14 08:27:39 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-14 08:27:39 +0000
commit15b258051cf3bbf8592eac0fd5e3d747d7172101 (patch)
tree98583d43a86d63d311ab40fc61249256a261d871 /source4/librpc/ndr/ndr_basic.c
parent57529207ca1c0f2a95e6e9f85fc41bb9a27aa64c (diff)
downloadsamba-15b258051cf3bbf8592eac0fd5e3d747d7172101.tar.gz
samba-15b258051cf3bbf8592eac0fd5e3d747d7172101.tar.bz2
samba-15b258051cf3bbf8592eac0fd5e3d747d7172101.zip
* added levels 4, 200 and 300 to NetDfsEnum. 200 and 300 don't work
properly, I'm still investigating that. * changed dcerpc fault status code to NT_STATUS_NETWORK_WRITE_FAULT, which I think is a better mapping (This used to be commit 9ad28f6ddbb777de7cac11e71c392b508c81b741)
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c7
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;
}
/*