From: W.C.A. Wijngaards Date: Thu, 23 Apr 2026 07:37:30 +0000 (+0200) Subject: - For #1441: Fix type of ipv6 addr struct. X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Funbound.git - For #1441: Fix type of ipv6 addr struct. --- diff --git a/doc/Changelog b/doc/Changelog index 0197af9ac..a1c5e918a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 28c1ed975..5db2b940b 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -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 {