summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/aio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c
index 2e9359e5ae..d367826acc 100644
--- a/source3/smbd/aio.c
+++ b/source3/smbd/aio.c
@@ -871,6 +871,11 @@ static bool handle_aio_completed(struct aio_extra *aio_ex, int *perr)
return false;
}
+ if (!aio_ex->fsp) {
+ DEBUG(3, ("handle_aio_completed: aio_ex->fsp == NULL\n"));
+ return false;
+ }
+
fsp = aio_ex->fsp;
/* Ensure the operation has really completed. */