From: Roy Marples Date: Tue, 22 Sep 2015 08:42:56 +0000 (+0000) Subject: Correct anohter Prefix Delegation sizing issue. X-Git-Tag: v6.9.4~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481fb3d0acead5a8e7cc96d402a281accec8617c;p=thirdparty%2Fdhcpcd.git Correct anohter Prefix Delegation sizing issue. --- diff --git a/dhcp6.c b/dhcp6.c index 13a76289..dac062ec 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1903,7 +1903,7 @@ dhcp6_findpd(struct interface *ifp, const uint8_t *iaid, i++; p = D6_COPTION_DATA(o) + sizeof(*pdp); - ol = (uint16_t)(ol - sizeof(pdp)); + ol = (uint16_t)(ol - sizeof(*pdp)); ex = dhcp6_findoption(D6_OPTION_PD_EXCLUDE, p, ol); a->prefix_exclude_len = 0; memset(&a->prefix_exclude, 0, sizeof(a->prefix_exclude));