s3:smbd/aio: handle_aio_completed() should do nothing if aio_ex->fsp is NULL
authorStefan Metzmacher <metze@samba.org>
Mon, 14 Nov 2011 08:54:05 +0000 (09:54 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Nov 2011 17:47:55 +0000 (18:47 +0100)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 15 18:47:55 CET 2011 on sn-devel-104

source3/smbd/aio.c

index 2e9359e5ae9f5427c09a43bbb1b436d05c84db5c..d367826acc2ac908e0b4c87d29167cc1fad065a8 100644 (file)
@@ -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. */