summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth2013-10-17 07:19:01 +0000
committerSteven Barth2013-10-17 07:19:01 +0000
commite23448ff8edc66f1da4fcb2b4066a02d6a54306f (patch)
tree92a8e8c2560bef588100b28e694a22ad1b520054
parent2037bd1f310239f1982f3bd2f541ba409ee16b6a (diff)
downloadodhcp6c-e23448ff8edc66f1da4fcb2b4066a02d6a54306f.tar.gz
Fix handling of PD-Advertisements
-rw-r--r--src/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 05794c6..f905a78 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -599,7 +599,7 @@ static int dhcpv6_handle_advert(enum dhcpv6_msg orig,
dhcpv6_for_each_option(&h[1], oend, otype, olen, d) {
if (otype == DHCPV6_OPT_IA_PREFIX && (olen + 4) >=
(uint16_t)sizeof(struct dhcpv6_ia_prefix)) {
- struct dhcpv6_ia_prefix *p = (struct dhcpv6_ia_prefix*)&odata[-4];
+ struct dhcpv6_ia_prefix *p = (struct dhcpv6_ia_prefix*)&d[-4];
have_pd = p->prefix;
}
}