Fix ipv6 address extraction 19/275519/1 accepted/tizen_6.0_unified accepted/tizen/6.0/unified/20220528.144337 submit/tizen_6.0/20220526.045337
authorAbhay Agarwal <ay.agarwal@samsung.com>
Thu, 19 May 2022 14:04:10 +0000 (19:34 +0530)
committerDohyun Pyun <dh79.pyun@samsung.com>
Thu, 26 May 2022 03:08:54 +0000 (12:08 +0900)
Fix dnssd_service_get_ip() API issue caused by
wrong copy of ipv6 address.

Change-Id: I735dcbeba2986ec34795dec49f44d5a6f24259e0
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
packaging/capi-network-nsd.spec
src/dns-sd/dns-sd.c

index b1dc5b3..ac19fdb 100644 (file)
@@ -1,7 +1,7 @@
 Name:       capi-network-nsd
 Summary:    A Network Service Discovery libraries in Native API
 Version:    0.1.1
-Release:    1
+Release:    2
 Group:      System/Network
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index 44732b2..0d4a959 100644 (file)
@@ -1718,7 +1718,7 @@ EXPORT_API int dnssd_service_get_ip(dnssd_service_h dnssd_service, char **ip_v4_
                                addr[2], addr[3], addr[4],
                                addr[5], addr[6], addr[7],
                                addr[8], addr[9], addr[10],
-                               addr[11], addr[12], addr[14],
+                               addr[11], addr[12], addr[13],
                                addr[14], addr[15]);
        }