diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-07-09 03:08:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:59:10 -0500 |
commit | b7b17c654da08e2abcad0e127ed30bb6991e64ab (patch) | |
tree | 36067b4084cf814d40aa332deef7a9f83198aa99 | |
parent | f6052143ad01d77fd0e38ee86eada6a9bd364ce6 (diff) | |
download | samba-b7b17c654da08e2abcad0e127ed30bb6991e64ab.tar.gz samba-b7b17c654da08e2abcad0e127ed30bb6991e64ab.tar.bz2 samba-b7b17c654da08e2abcad0e127ed30bb6991e64ab.zip |
r23754: Make sure to check the status return before we de-reference the
returned elements.
Andrew Bartlett
(This used to be commit 3a8192c74288b98bc61af95aa5cd39b1584411c1)
-rw-r--r-- | source4/libcli/raw/rawshadow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/raw/rawshadow.c b/source4/libcli/raw/rawshadow.c index 428ebc9f8d..206abf56b4 100644 --- a/source4/libcli/raw/rawshadow.c +++ b/source4/libcli/raw/rawshadow.c @@ -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; |