1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

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)
This commit is contained in:
metze 2007-11-02 10:29:19 +00:00 committed by Stefan Metzmacher
parent ff595ad9c8
commit f966752da7

View File

@ -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);