diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-02 10:29:19 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:01 +0100 |
commit | 2a9e6744423126b0b0cb1e0e341e59ddf8dea4a3 (patch) | |
tree | ad385c60bf6106bd3d6f8938f88c3fe109571279 /source4/librpc | |
parent | 520dcd4a878bd630b3e0aa5229b1de33cc6540e5 (diff) | |
download | samba-2a9e6744423126b0b0cb1e0e341e59ddf8dea4a3.tar.gz samba-2a9e6744423126b0b0cb1e0e341e59ddf8dea4a3.tar.bz2 samba-2a9e6744423126b0b0cb1e0e341e59ddf8dea4a3.zip |
r25793: check the return value of ndr_push_set_switch_value()
metze
(This used to be commit a85e687e588a7c7e2abb7416631b8815fbae1f58)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/ndr/ndr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 680ae9043e..e16f179b92 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -814,7 +814,7 @@ _PUBLIC_ NTSTATUS ndr_push_union_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, void 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); |