diff options
author | Volker Lendecke <vl@samba.org> | 2011-06-19 19:23:47 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-06-19 20:46:43 +0200 |
commit | 5290faca7a5ae5f3f0309a42586768a5c93bfb9d (patch) | |
tree | a738fdeb959bc901216d9d9269bb0e17b50a7b39 | |
parent | 9cc68e49ee0744ecd64f12fc0f0c54e89bc6773c (diff) | |
download | samba-5290faca7a5ae5f3f0309a42586768a5c93bfb9d.tar.gz samba-5290faca7a5ae5f3f0309a42586768a5c93bfb9d.tar.bz2 samba-5290faca7a5ae5f3f0309a42586768a5c93bfb9d.zip |
s3: Fix Coverity ID 2582: FORWARD_NULL
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jun 19 20:46:43 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/smbd/smb2_ioctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c index a5b8326626..bce02b0a3a 100644 --- a/source3/smbd/smb2_ioctl.c +++ b/source3/smbd/smb2_ioctl.c @@ -399,6 +399,11 @@ static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx, char *pdata; NTSTATUS status; + if (fsp == NULL) { + tevent_req_nterror(req, NT_STATUS_FILE_CLOSED); + return tevent_req_post(req, ev); + } + if (in_max_output < 16) { DEBUG(0,("FSCTL_GET_SHADOW_COPY_DATA: " "in_max_output(%u) < 16 is invalid!\n", |