summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network.c')
-rwxr-xr-xsrc/network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index d71b419f..ed05a52a 100755
--- a/src/network.c
+++ b/src/network.c
@@ -560,6 +560,10 @@ static int set_connected_manual(struct connman_network *network)
ipconfig = __connman_service_get_ip4config(service);
__connman_ipconfig_enable(ipconfig);
+#if defined TIZEN_EXT
+ if (!service || !ipconfig)
+ return -EINVAL;
+#endif
if (!__connman_ipconfig_get_local(ipconfig))
__connman_service_read_ip4config(service);