svn commit: samba r23754 - in branches/SAMBA_4_0/source/libcli/raw: .

abartlet at samba.org abartlet at samba.org
Mon Jul 9 03:08:21 GMT 2007


Author: abartlet
Date: 2007-07-09 03:08:20 +0000 (Mon, 09 Jul 2007)
New Revision: 23754

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

Log:
Make sure to check the status return before we de-reference the
returned elements.

Andrew Bartlett


Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawshadow.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawshadow.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/rawshadow.c	2007-07-09 01:49:49 UTC (rev 23753)
+++ branches/SAMBA_4_0/source/libcli/raw/rawshadow.c	2007-07-09 03:08:20 UTC (rev 23754)
@@ -46,6 +46,9 @@
 	nt.ntioctl.in.blob      = data_blob(NULL, 0);
 
 	status = smb_raw_ioctl(tree, mem_ctx, &nt);
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
 	
 	blob = nt.ntioctl.out.blob;
 



More information about the samba-cvs mailing list