[TT-59] Fixed: Segmentaion Fault issue 43/40543/1
authorManeesh Jain <maneesh.jain@samsung.com>
Fri, 5 Jun 2015 04:47:43 +0000 (10:17 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Fri, 5 Jun 2015 04:47:43 +0000 (10:17 +0530)
@Fix: Jira Issue# Tizen TV / TT-59

Change-Id: Ifd4891f9cfba7ef4973fb3730c782ea450a03d83
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
packaging/capi-network-connection.spec
src/libnetwork.c [changed mode: 0644->0755]

index 3961f7a..0f694e0 100644 (file)
@@ -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
old mode 100644 (file)
new mode 100755 (executable)
index 53971c3..3b8bc92
@@ -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: