From ad52dcdf5de6f5f2c2ee156d93ebbb343f39e526 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 16 Apr 2015 22:28:25 +0200 Subject: [PATCH] s3:smbd: missing tevent_req_nterror The error code path in case fsp == NULL misses a call tevent_req_nterror(). Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/aio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index e2306a98288..253782bba2d 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -789,10 +789,10 @@ static void aio_pread_smb2_done(struct tevent_req *req) (nread == -1) ? strerror(err) : "no error")); if (fsp == NULL) { - DEBUG( 3, ("aio_pread_smb2_done: file closed whilst " - "aio outstanding (mid[%llu]).\n", - (unsigned long long)aio_ex->smbreq->mid)); + DEBUG(3, ("%s: request cancelled (mid[%ju])\n", + __func__, (uintmax_t)aio_ex->smbreq->mid)); TALLOC_FREE(aio_ex); + tevent_req_nterror(subreq, NT_STATUS_INTERNAL_ERROR); return; } @@ -962,10 +962,10 @@ static void aio_pwrite_smb2_done(struct tevent_req *req) (nwritten == -1) ? strerror(err) : "no error")); if (fsp == NULL) { - DEBUG( 3, ("aio_pwrite_smb2_done: file closed whilst " - "aio outstanding (mid[%llu]).\n", - (unsigned long long)aio_ex->smbreq->mid)); + DEBUG(3, ("%s: request cancelled (mid[%ju])\n", + __func__, (uintmax_t)aio_ex->smbreq->mid)); TALLOC_FREE(aio_ex); + tevent_req_nterror(subreq, NT_STATUS_INTERNAL_ERROR); return; } -- 2.11.4.GIT