r23754: Make sure to check the status return before we de-reference the
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Jul 2007 03:08:20 +0000 (03:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:59:10 +0000 (14:59 -0500)
returned elements.

Andrew Bartlett
(This used to be commit 3a8192c74288b98bc61af95aa5cd39b1584411c1)

source4/libcli/raw/rawshadow.c

index 428ebc9f8d3e937bbca01ae7458987a505021e72..206abf56b4d3466dc4c260ff018cd86c57f10399 100644 (file)
@@ -46,6 +46,9 @@ _PUBLIC_ NTSTATUS smb_raw_shadow_data(struct smbcli_tree *tree,
        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;