svn commit: samba r25793 - in branches/SAMBA_4_0/source/librpc/ndr: .

metze at samba.org metze at samba.org
Fri Nov 2 10:29:20 GMT 2007


Author: metze
Date: 2007-11-02 10:29:19 +0000 (Fri, 02 Nov 2007)
New Revision: 25793

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25793

Log:
check the return value of ndr_push_set_switch_value()

metze
Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr.c	2007-11-02 10:26:49 UTC (rev 25792)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c	2007-11-02 10:29:19 UTC (rev 25793)
@@ -814,7 +814,7 @@
 	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);



More information about the samba-cvs mailing list