From 2cc1691df4d30aa3a57c331c2541e450ded12129 Mon Sep 17 00:00:00 2001 From: Maneesh Jain Date: Fri, 5 Jun 2015 10:17:43 +0530 Subject: [PATCH] [TT-59] Fixed: Segmentaion Fault issue @Fix: Jira Issue# Tizen TV / TT-59 Change-Id: Ifd4891f9cfba7ef4973fb3730c782ea450a03d83 Signed-off-by: Maneesh Jain --- packaging/capi-network-connection.spec | 2 +- src/libnetwork.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/libnetwork.c 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: -- 2.34.1