summaryrefslogtreecommitdiffstats
path: root/source3/smbd/aio.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-14 09:54:05 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 18:47:55 +0100
commit31cd1fbd2b1c2d1635662688e979bb5baa992855 (patch)
treeb5dc3c11f88ebfcee18f0fb3d2bbfd389dd23051 /source3/smbd/aio.c
parent21eb1450cc2541e23dedf1a0dec24e3313ab8739 (diff)
downloadsamba-31cd1fbd2b1c2d1635662688e979bb5baa992855.tar.gz
samba-31cd1fbd2b1c2d1635662688e979bb5baa992855.tar.xz
samba-31cd1fbd2b1c2d1635662688e979bb5baa992855.zip
s3:smbd/aio: handle_aio_completed() should do nothing if aio_ex->fsp is NULL
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Nov 15 18:47:55 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd/aio.c')
-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. */