]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Correct anohter Prefix Delegation sizing issue.
authorRoy Marples <roy@marples.name>
Tue, 22 Sep 2015 08:42:56 +0000 (08:42 +0000)
committerRoy Marples <roy@marples.name>
Tue, 22 Sep 2015 08:42:56 +0000 (08:42 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 13a76289387cf19629d19f68340fcc37031d3d69..dac062ecb5aec0be07025ecec2ac63bebef07ea6 100644 (file)
--- 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));