svn commit: samba r25828 - in branches/SAMBA_4_0/source/librpc/rpc: .

metze at samba.org metze at samba.org
Mon Nov 5 06:58:58 GMT 2007


Author: metze
Date: 2007-11-05 06:58:57 +0000 (Mon, 05 Nov 2007)
New Revision: 25828

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

Log:
don't ignore errors

metze
Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2007-11-05 02:33:30 UTC (rev 25827)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2007-11-05 06:58:57 UTC (rev 25828)
@@ -82,6 +82,9 @@
 
 	if (auth_info) {
 		status = ndr_push_dcerpc_auth(ndr, NDR_SCALARS|NDR_BUFFERS, auth_info);
+		if (!NT_STATUS_IS_OK(status)) {
+			return status;
+		}
 	}
 
 	*blob = ndr_push_blob(ndr);
@@ -449,6 +452,10 @@
 	}
 
 	status = ndr_pull_uint16(ndr, NDR_SCALARS, &if_version);
+	if (!NT_STATUS_IS_OK(status)) {
+		talloc_free(mem_ctx);
+		return status;
+	}
 	syntax->if_version = if_version;
 
 	talloc_free(mem_ctx);



More information about the samba-cvs mailing list