summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-01-28 22:45:39 +0000
committerBen Hutchings <ben@decadent.org.uk>2016-01-28 22:50:04 +0000
commitc47e4f59ef87ef94b84023e260bfadd9df6e5a82 (patch)
tree9aeacace0554e1adaf22b23fe9b3031836cac3f6
parent1801580e39ceac0d7fec7adef892763c4da56906 (diff)
downloadodhcp6c-c47e4f59ef87ef94b84023e260bfadd9df6e5a82.tar.gz
Fix end pointer passed from dhcpv6_handle_reply() to dhcpv6_parse_ia()
The end of the IA option is odata + olen; there's no need to add anything. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--src/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index e27d899..c5f11f1 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -989,7 +989,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc,
if (code != DHCPV6_Success)
continue;
- dhcpv6_parse_ia(ia_hdr, odata + olen + sizeof(*ia_hdr));
+ dhcpv6_parse_ia(ia_hdr, odata + olen);
passthru = false;
} else if (otype == DHCPV6_OPT_STATUS && olen >= 2) {
uint8_t *mdata = (olen > 2) ? &odata[2] : NULL;