r25793: check the return value of ndr_push_set_switch_value()
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Nov 2007 09:29:19 +0000 (10:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:01 +0000 (05:44 +0100)
metze
(This used to be commit a85e687e588a7c7e2abb7416631b8815fbae1f58)

source4/librpc/ndr/ndr.c

index 680ae9043e01ae2b2a4421f17be774632a31e766..e16f179b929ac19084d8ae75071f2cbaf57f9e64 100644 (file)
@@ -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);