From f966752da761ae23e512f3494c5147c8aa1596ef Mon Sep 17 00:00:00 2001 From: metze Date: Fri, 2 Nov 2007 10:29:19 +0000 Subject: 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) --- source3/librpc/ndr/ndr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit