From 851b2c177418255f6f44780bf9d09445d61fec3c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 25 Jan 2012 16:43:49 +0100 Subject: 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 --- source3/modules/vfs_aio_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c index aeacf2895e..e1cc492bb5 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."); } -- cgit