From: Roy Marples Date: Tue, 23 Jun 2026 01:06:55 +0000 (+0100) Subject: DHCPv6: Prefix exclude option can be 17 octets (#671) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f00c7bfc408b6582d331932dfa47829c4819029;p=thirdparty%2Fdhcpcd.git DHCPv6: Prefix exclude option can be 17 octets (#671) Well that's a simple off by one error Reported-by: CuB3y0nd --- diff --git a/src/dhcp6.c b/src/dhcp6.c index 4a15319c..460040bd 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -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 -