Fix possible bt-service crash issue 45/41845/1
authorAtul Rai <a.rai@samsung.com>
Thu, 18 Jun 2015 07:27:26 +0000 (12:57 +0530)
committerAtul Rai <a.rai@samsung.com>
Thu, 18 Jun 2015 07:29:22 +0000 (12:59 +0530)
This patch fixes null pointer dereferencing when introspection_data
is NULL in __bt_service_create_method_node_info().

Change-Id: I795f3eaf5f807bfd00ede182089e7ac3b952abf6
Signed-off-by: Atul Rai <a.rai@samsung.com>
bt-service/bt-request-handler.c

index 44df773..069ec2c 100644 (file)
@@ -2113,7 +2113,7 @@ GDBusNodeInfo *__bt_service_create_method_node_info
        GDBusNodeInfo *node_info = NULL;
 
        if (introspection_data == NULL) {
-               ERR("Introspection XML not present: %s", err->message);
+               ERR("Introspection XML not present");
                return NULL;
        }