summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network.c')
-rwxr-xr-xsrc/network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c
index 6c275c4..715c8ea 100755
--- a/src/network.c
+++ b/src/network.c
@@ -1386,7 +1386,8 @@ static void set_invalid_key_error(struct connman_network *network)
service = connman_service_lookup_from_network(network);
#if defined TIZEN_EXT
- __connman_service_set_favorite(service, false);
+ if (service)
+ __connman_service_set_favorite(service, false);
#endif
__connman_service_indicate_error(service,
CONNMAN_SERVICE_ERROR_INVALID_KEY);