s3: Fix a panic in aio_pthread
authorVolker Lendecke <vl@samba.org>
Wed, 25 Jan 2012 15:43:49 +0000 (16:43 +0100)
committerVolker Lendecke <vlendec@samba.org>
Wed, 25 Jan 2012 17:22:37 +0000 (18:22 +0100)
Found by Nir Drang <nir@fabrix.tv>

Thanks!

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 25 18:22:37 CET 2012 on sn-devel-104

source3/modules/vfs_aio_pthread.c

index aeacf2895eb4374fead09f374e7167f81bea56eb..e1cc492bb5f89b0489996f9ebd2f8d62d3f8eb67 100644 (file)
@@ -458,7 +458,7 @@ static void aio_pthread_handle_suspend_completion(struct event_context *event_ct
        }
 
        pjobid = talloc_array(NULL, int, 1);
-       if (pjobid) {
+       if (pjobid == NULL) {
                smb_panic("aio_pthread_handle_suspend_completion: no memory.");
        }