tevent: fix CID 1437974 dereference after null check
authorRalph Boehme <slow@samba.org>
Tue, 17 Jul 2018 10:59:50 +0000 (12:59 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Jul 2018 14:21:21 +0000 (16:21 +0200)
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 <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Jul 17 16:21:21 CEST 2018 on sn-devel-144

lib/tevent/tevent_wrapper.c

index 05c4c06968aae944f3584e4ba478febe898e0564..a07696af0a4d155f2c918be0dcf10fd77e361596 100644 (file)
@@ -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;