From 31cd1fbd2b1c2d1635662688e979bb5baa992855 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 14 Nov 2011 09:54:05 +0100 Subject: s3:smbd/aio: handle_aio_completed() should do nothing if aio_ex->fsp is NULL metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Tue Nov 15 18:47:55 CET 2011 on sn-devel-104 --- source3/smbd/aio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd') 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. */ -- cgit