]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- For #1441: Fix type of ipv6 addr struct. master
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Apr 2026 07:37:30 +0000 (09:37 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 23 Apr 2026 07:37:30 +0000 (09:37 +0200)
doc/Changelog
services/listen_dnsport.c

index 0197af9acaa0b8b6dab5654ced8bc19ccb8f9467..a1c5e918ad0ca26837d29bc9b5035abf24aa16e6 100644 (file)
@@ -1,6 +1,7 @@
 23 April 2026: Wouter
        - Merge #1441: Fix buffer overrun in
          doq_repinfo_retrieve_localaddr().
+       - For #1441: Fix type of ipv6 addr struct.
 
 21 April 2026: Wouter
        - Add test case for malformed SVCB records. Thanks to
index 28c1ed975b1741e44ea92b26f6659d1c6777b197..5db2b940bc04a531dd5b5a90a248154306639935 100644 (file)
@@ -3767,7 +3767,7 @@ doq_repinfo_retrieve_localaddr(struct comm_reply* repinfo,
                memset(sa6, 0, *localaddrlen);
                sa6->sin6_family = AF_INET6;
                memmove(&sa6->sin6_addr, &repinfo->pktinfo.v6info.ipi6_addr,
-                       sizeof(struct in_addr6));
+                       sizeof(struct in6_addr));
                sa6->sin6_port = repinfo->doq_srcport;
 #endif
        } else {