From b7b17c654da08e2abcad0e127ed30bb6991e64ab Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 9 Jul 2007 03:08:20 +0000 Subject: r23754: Make sure to check the status return before we de-reference the returned elements. Andrew Bartlett (This used to be commit 3a8192c74288b98bc61af95aa5cd39b1584411c1) --- source4/libcli/raw/rawshadow.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/libcli/raw') 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; -- cgit