From ab234549b19f9c5b4aad1fc1add66c36ab2e4469 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 7 Jul 2014 10:01:24 +0000 Subject: [PATCH] There are no pd's in the config if we're not dealing with them. --- dhcp6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dhcp6.c b/dhcp6.c index 6c431cfd..1095bbe9 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1318,6 +1318,9 @@ dhcp6_hasprefixdelegation(struct interface *ifp) { size_t i; + if (ifp->options->options & DHCPCD_NOPFXDLG) + return 0; + for (i = 0; i < ifp->options->ia_len; i++) { if (ifp->options->ia[i].ia_type == D6_OPTION_IA_PD) return 1; -- 2.47.3