From 0333fa1de75a04fdb244d7f6fd9ade9aa21f8622 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 27 Dec 2017 14:26:19 +0900 Subject: [PATCH] Bug fix: connection_profile_get_ip_address() Change-Id: Iba5d634a46ffd9c9bc9545180582018f1c5add54 Signed-off-by: Seonah Moon --- packaging/capi-network-connection.spec | 2 +- src/connection_profile.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.7.4