From: Seonah Moon Date: Wed, 27 Dec 2017 05:26:19 +0000 (+0900) Subject: Bug fix: connection_profile_get_ip_address() X-Git-Tag: accepted/tizen/unified/20171228.065011^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fapi%2Fconnection.git;a=commitdiff_plain;h=0333fa1de75a04fdb244d7f6fd9ade9aa21f8622 Bug fix: connection_profile_get_ip_address() Change-Id: Iba5d634a46ffd9c9bc9545180582018f1c5add54 Signed-off-by: Seonah Moon --- diff --git a/packaging/capi-network-connection.spec b/packaging/capi-network-connection.spec index d5b1e64..0e5f691 100755 --- 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: 1.0.107 +Version: 1.0.108 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/connection_profile.c b/src/connection_profile.c index 8f7f52c..d5e3bd8 100755 --- a/src/connection_profile.c +++ b/src/connection_profile.c @@ -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) {