lib: Fix CID 1128556 Dereference after null check
authorVolker Lendecke <vl@samba.org>
Tue, 23 Jun 2015 09:06:02 +0000 (11:06 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jun 2015 20:12:09 +0000 (22:12 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/messages_ctdbd.c

index b4f4d63c6dbad8746b6a15c9aed6ee550f6713a9..248fc0df7df9cff2247cc5f905ac5289cc3ca9c2 100644 (file)
@@ -50,6 +50,7 @@ struct ctdbd_connection *messaging_ctdbd_connection(void)
                ev = samba_tevent_context_init(NULL);
                if (!ev) {
                        DEBUG(0,("samba_tevent_context_init failed\n"));
+                       return NULL;
                }
 
                msg = messaging_init(NULL, ev);