From: hyunuktak Date: Mon, 12 Dec 2016 09:25:33 +0000 (+0900) Subject: Fix a svace for checking NULL X-Git-Tag: accepted/tizen/common/20161212.185700^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b625b88d3ce8b06ca21210e1e10a1532a6f5ab75;p=platform%2Fupstream%2Fconnman.git Fix a svace for checking NULL Change-Id: I91b9b29c1c1c2b0b835f5a9b81a23b48fbd3b5dc Signed-off-by: hyunuktak --- 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);