From: Volker Lendecke Date: Thu, 26 Oct 2017 19:08:14 +0000 (+0200) Subject: samba: Fix CID 1420180 Null pointer dereferences X-Git-Tag: tevent-0.9.34~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7a4c31047f55a5bd0160f5b4fb614bff9c3c421;p=thirdparty%2Fsamba.git samba: Fix CID 1420180 Null pointer dereferences Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c index 8e4d62470a7..a4bd7ba74b7 100644 --- a/source4/smbd/process_prefork.c +++ b/source4/smbd/process_prefork.c @@ -318,7 +318,7 @@ static void prefork_new_task( struct tfork* w = NULL; w = tfork_create(); - if (t == NULL) { + if (w == NULL) { smb_panic("failure in tfork\n"); }