Bug fix: connection_profile_get_ip_address() 97/165197/1 accepted/tizen/unified/20171228.065011 submit/tizen/20171227.071346
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 27 Dec 2017 05:26:19 +0000 (14:26 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 27 Dec 2017 05:28:50 +0000 (14:28 +0900)
Change-Id: Iba5d634a46ffd9c9bc9545180582018f1c5add54
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-network-connection.spec
src/connection_profile.c

index d5b1e64..0e5f691 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.107
+Version:       1.0.108
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 8f7f52c..d5e3bd8 100755 (executable)
@@ -572,8 +572,8 @@ EXPORT_API int connection_profile_get_ip_address(connection_profile_h profile,
        if (net_info == NULL)
                return CONNECTION_ERROR_OPERATION_FAILED;
 
-       if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
-               *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6,
+       if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4) {
+               *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr,
                                address_family);
        } else {
                if (net_get_preferred_ipv6_address(net_info->ProfileName, ip_address) != NET_ERR_NONE) {