From: Ralph Boehme Date: Tue, 17 Jul 2018 10:59:50 +0000 (+0200) Subject: tevent: fix CID 1437974 dereference after null check X-Git-Tag: ldb-1.5.0~272 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=ba991da43469a1844b67fcec19a15ceda409fc3f;p=samba.git tevent: fix CID 1437974 dereference after null check Probably a copy/paste error from the tevent_debug() statement a few lines above as at this place we want to pass main_ev directly to tevent_debug() anyway. Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Jul 17 16:21:21 CEST 2018 on sn-devel-144 --- diff --git a/lib/tevent/tevent_wrapper.c b/lib/tevent/tevent_wrapper.c index 05c4c06968a..a07696af0a4 100644 --- a/lib/tevent/tevent_wrapper.c +++ b/lib/tevent/tevent_wrapper.c @@ -347,7 +347,7 @@ struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *mai /* * wrappers conflict with nesting */ - tevent_debug(main_ev->wrapper.glue->main_ev, TEVENT_DEBUG_FATAL, + tevent_debug(main_ev, TEVENT_DEBUG_FATAL, "%s: %s() conflicts with nesting\n", __func__, location); errno = EINVAL;