From: Roy Marples Date: Tue, 22 Sep 2015 08:12:30 +0000 (+0000) Subject: Correst size allocation for prefix delegation, thanks to Jade. X-Git-Tag: v6.9.4~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8eca22bb9f63b590ba78f8e8e88728a94da7df3;p=thirdparty%2Fdhcpcd.git Correst size allocation for prefix delegation, thanks to Jade. --- diff --git a/dhcp6.c b/dhcp6.c index 56d9ae27..13a76289 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1902,7 +1902,7 @@ dhcp6_findpd(struct interface *ifp, const uint8_t *iaid, state->expire = a->prefix_vltime; i++; - p = D6_COPTION_DATA(o) + sizeof(pdp); + p = D6_COPTION_DATA(o) + sizeof(*pdp); ol = (uint16_t)(ol - sizeof(pdp)); ex = dhcp6_findoption(D6_OPTION_PD_EXCLUDE, p, ol); a->prefix_exclude_len = 0;