]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCPv6: Prefix exclude option can be 17 octets (#671)
authorRoy Marples <roy@marples.name>
Tue, 23 Jun 2026 01:06:55 +0000 (02:06 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2026 01:06:55 +0000 (02:06 +0100)
Well that's a simple off by one error

Reported-by: CuB3y0nd <root@cubeyond.net>
src/dhcp6.c

index 4a15319c01edc6b163b44a8fa9068cba96e6b9b1..460040bd190de361526ecdcf9e58d603fe24afe4 100644 (file)
@@ -1060,7 +1060,7 @@ dhcp6_makemessage(struct interface *ifp)
 
                                /* RFC6603 Section 4.2 */
                                if (ap->prefix_exclude_len) {
-                                       uint8_t exb[16], *ep, u8;
+                                       uint8_t exb[17], *ep, u8;
                                        const uint8_t *pp;
 
                                        n = (size_t)((ap->prefix_exclude_len -