>From 85efbacc517db3d295118c7ddc25b32e9df9cc71 Mon Sep 17 00:00:00 2001
From: Jeongseok Seo <[email protected]>
Date: Wed, 7 Dec 2011 22:18:10 +0900
Subject: [PATCH] gdbus: Check NULL pointer

Add NULL check to avoid ConnMan crash
---
 gdbus/mainloop.c |    3 +++ 
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index 8718da0..967b573 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -200,6 +200,9 @@ static void timeout_handler_free(void *data)
 {
        struct timeout_handler *handler = data;
 
+       if (handler == NULL)
+               return;
+
        if (handler->id > 0) {
                g_source_remove(handler->id);
                handler->id = 0;
-- 
1.7.5.4


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to