From 9d0377a9ad2d7abf8545ee4f32106109b35620b8 Mon Sep 17 00:00:00 2001 From: Deepika Aggarwal Date: Thu, 3 Dec 2015 11:46:53 +0530 Subject: [PATCH 3/5] Null Dereference fix Description: Prevent Null value return dereference fix in toggle_server_watch Signed-off-by: Deepika Aggarwal --- bus/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus/bus.c b/bus/bus.c index fd4ab9e..eabb279 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -139,8 +139,8 @@ toggle_server_watch (DBusWatch *watch, BusContext *context; context = server_get_context (server); - - _dbus_loop_toggle_watch (context->loop, watch); + if(context) + _dbus_loop_toggle_watch (context->loop, watch); } static dbus_bool_t -- 1.7.9.5