From: Volker Lendecke Date: Wed, 25 Jan 2012 15:43:49 +0000 (+0100) Subject: s3: Fix a panic in aio_pthread X-Git-Tag: tevent-0.9.15~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=851b2c177418255f6f44780bf9d09445d61fec3c;p=thirdparty%2Fsamba.git s3: Fix a panic in aio_pthread Found by Nir Drang Thanks! Autobuild-User: Volker Lendecke Autobuild-Date: Wed Jan 25 18:22:37 CET 2012 on sn-devel-104 --- diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index aeacf2895eb..e1cc492bb5f 100644 --- a/source3/modules/vfs_aio_pthread.c +++ b/source3/modules/vfs_aio_pthread.c @@ -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."); }