From 2f00c7bfc408b6582d331932dfa47829c4819029 Mon Sep 17 00:00:00 2001
From: Roy Marples <roy@marples.name>
Date: Tue, 23 Jun 2026 02:06:55 +0100
Subject: [PATCH] DHCPv6: Prefix exclude option can be 17 octets (#671)

Well that's a simple off by one error

Reported-by: CuB3y0nd <root@cubeyond.net>
---
 src/dhcp6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 -
