From: Maneesh Jain Date: Fri, 5 Jun 2015 04:47:43 +0000 (+0530) Subject: [TT-59] Fixed: Segmentaion Fault issue X-Git-Tag: accepted/tizen/mobile/20150710.080010~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cc1691df4d30aa3a57c331c2541e450ded12129;p=platform%2Fcore%2Fapi%2Fconnection.git [TT-59] Fixed: Segmentaion Fault issue @Fix: Jira Issue# Tizen TV / TT-59 Change-Id: Ifd4891f9cfba7ef4973fb3730c782ea450a03d83 Signed-off-by: Maneesh Jain --- diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index 3961f7a..0f694e0 100644 --- a/packaging/capi-network-connection.spec +++ b/packaging/capi-network-connection.spec @@ -1,6 +1,6 @@ Name: capi-network-connection Summary: Network Connection library in TIZEN C API -Version: 0.1.3_24 +Version: 0.1.3_25 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/libnetwork.c b/src/libnetwork.c old mode 100644 new mode 100755 index 53971c3..3b8bc92 --- a/src/libnetwork.c +++ b/src/libnetwork.c @@ -552,6 +552,11 @@ int _connection_libnet_get_ethernet_state(connection_ethernet_state_e* state) return CONNECTION_ERROR_PERMISSION_DENIED; } + if (ethernet_profiles.count == 0) { + state = CONNECTION_ETHERNET_STATE_DEACTIVATED; + return true; + } + switch (ethernet_profiles.profiles->ProfileState) { case NET_STATE_TYPE_ONLINE: case NET_STATE_TYPE_READY: