lib: Fix CID 1273009 Dereference after null check
authorVolker Lendecke <vl@samba.org>
Thu, 26 Mar 2015 09:21:20 +0000 (10:21 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 26 Mar 2015 13:54:20 +0000 (14:54 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/messages.c

index aa67640e8cb5a38b0bd2cf53ec0eb6b2253baee0..f0d2797dba40ceca92705a78afd61f4fb7027ef1 100644 (file)
@@ -1066,6 +1066,7 @@ static void mess_parent_dgm_cleanup_done(struct tevent_req *req)
                mess_parent_dgm_cleanup, msg);
        if (req == NULL) {
                DEBUG(1, ("background_job_send failed\n"));
+               return;
        }
        tevent_req_set_callback(req, mess_parent_dgm_cleanup_done, msg);
 }