projects
/
platform
/
core
/
api
/
connection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Null Check to avoid potential crash
[platform/core/api/connection.git]
/
src
/
libnetwork.c
diff --git
a/src/libnetwork.c
b/src/libnetwork.c
index
3b8bc92
..
0c826d9
100755
(executable)
--- a/
src/libnetwork.c
+++ b/
src/libnetwork.c
@@
-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;