Merge "Suppose Device trying to connect with a wifi router which does not support...
[platform/core/api/connection.git] / src / connection_profile.c
index 6cbb3a2..eadfded 100755 (executable)
@@ -587,7 +587,7 @@ EXPORT_API int connection_profile_get_ip_address(connection_profile_h profile,
        } else {
                if (net_get_preferred_ipv6_address(net_info->ProfileName, ip_address) != NET_ERR_NONE) {
                        CONNECTION_LOG(CONNECTION_ERROR, "Failed to get preferred ipv6 address");
-                       *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr,
+                       *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6,
                                        address_family);
                }
        }