samba: Fix CID 1420180 Null pointer dereferences
authorVolker Lendecke <vl@samba.org>
Thu, 26 Oct 2017 19:08:14 +0000 (21:08 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 27 Oct 2017 18:33:25 +0000 (20:33 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/smbd/process_prefork.c

index 8e4d62470a7fcc148cf4a44fe201d6d237892b1c..a4bd7ba74b79c58c3c7593425e1805e7ed445be7 100644 (file)
@@ -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");
                }