summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-01-25 16:43:49 +0100
committerVolker Lendecke <vlendec@samba.org>2012-01-25 18:22:37 +0100
commit851b2c177418255f6f44780bf9d09445d61fec3c (patch)
treef1f9836cc087d5097d249a774e7b2d9617071215 /source3/modules
parent67126ed08cc0e9226f4a0c099c8f03293929cc9a (diff)
downloadsamba-851b2c177418255f6f44780bf9d09445d61fec3c.tar.gz
samba-851b2c177418255f6f44780bf9d09445d61fec3c.tar.bz2
samba-851b2c177418255f6f44780bf9d09445d61fec3c.zip
s3: Fix a panic in aio_pthread
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
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_aio_pthread.c2
1 files changed, 1 insertions, 1 deletions
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.");
}