From c7cc3adca2d7cfdd2350a9e0d540570bc826e2c7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 26 Mar 2015 10:21:20 +0100 Subject: [PATCH] lib: Fix CID 1273009 Dereference after null check Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/lib/messages.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/lib/messages.c b/source3/lib/messages.c index aa67640e8cb..f0d2797dba4 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -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); }