summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-11-02 10:29:19 +0000
committerStefan Metzmacher <metze@samba.org>2007-11-07 12:11:33 +0100
commitf966752da761ae23e512f3494c5147c8aa1596ef (patch)
tree6a5ba60560efc9aaf5b849e90bf7f8b78cfc3203 /source3
parentff595ad9c86076f19e0aa188de257ec4d54e31bd (diff)
downloadsamba-f966752da761ae23e512f3494c5147c8aa1596ef.tar.gz
samba-f966752da761ae23e512f3494c5147c8aa1596ef.tar.bz2
samba-f966752da761ae23e512f3494c5147c8aa1596ef.zip
check the return value of ndr_push_set_switch_value()
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25793 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit aa155b2c2936c0e9996eda0a21f137773270343a)
Diffstat (limited to 'source3')
-rw-r--r--source3/librpc/ndr/ndr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/ndr/ndr.c b/source3/librpc/ndr/ndr.c
index 184a17d8f4..0f86b0c0ab 100644
--- a/source3/librpc/ndr/ndr.c
+++ b/source3/librpc/ndr/ndr.c
@@ -777,7 +777,7 @@ NTSTATUS ndr_push_union_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, void *p,
ndr = ndr_push_init_ctx(mem_ctx);
NT_STATUS_HAVE_NO_MEMORY(ndr);
- ndr_push_set_switch_value(ndr, p, level);
+ NDR_CHECK(ndr_push_set_switch_value(ndr, p, level));
NDR_CHECK(fn(ndr, NDR_SCALARS|NDR_BUFFERS, p));
*blob = ndr_push_blob(ndr);