Add Null Check to avoid potential crash 19/40819/2
authorManeesh Jain <maneesh.jain@samsung.com>
Tue, 9 Jun 2015 09:43:35 +0000 (15:13 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Tue, 9 Jun 2015 09:46:09 +0000 (15:16 +0530)
Change-Id: Ifb4967ebf40df6f0dc305dd0cd5b4543ca2aad83
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
packaging/capi-network-connection.spec
src/libnetwork.c

index 0f694e0..5b07ac0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-connection
 Summary:    Network Connection library in TIZEN C API
-Version:    0.1.3_25
+Version:    0.1.3_26
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
index 3b8bc92..0c826d9 100755 (executable)
@@ -482,6 +482,9 @@ bool _connection_libnet_check_profile_validity(connection_profile_h profile)
        GSList *list;
        int i = 0;
 
+       if (profile == NULL)
+               return false;
+
        for (list = prof_handle_list; list; list = list->next)
                if (profile == list->data) return true;