inet: use correct type for IPv6 address 51/300051/1 accepted/tizen/unified/20231024.032139
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 16 Oct 2023 07:54:12 +0000 (16:54 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 16 Oct 2023 07:54:12 +0000 (16:54 +0900)
Real types must be in_addr for AF_INET and in6_addr for AF_INET6.

Change-Id: I5183cd171e465def63fc42c0da819c342f6768e6
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/inet.c

index 1e400fb..81668f8 100644 (file)
@@ -2447,7 +2447,7 @@ int connman_inet_get_dest_addr(int index, char **dest)
 int connman_inet_ipv6_get_dest_addr(int index, char **dest)
 {
        struct interface_address if_addr = { 0 };
-       struct in_addr dstaddr = { 0 };
+       struct in6_addr dstaddr = { 0 };
        char buf[INET6_ADDRSTRLEN] = { 0 };
        int err;