From 5290faca7a5ae5f3f0309a42586768a5c93bfb9d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Jun 2011 19:23:47 +0200 Subject: [PATCH] s3: Fix Coverity ID 2582: FORWARD_NULL Autobuild-User: Volker Lendecke Autobuild-Date: Sun Jun 19 20:46:43 CEST 2011 on sn-devel-104 --- source3/smbd/smb2_ioctl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c index a5b8326626c..bce02b0a3a8 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", -- 2.11.4.GIT