From: Roy Marples Date: Mon, 7 Jul 2014 09:36:17 +0000 (+0000) Subject: Fix const X-Git-Tag: v6.4.1~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61eea97f07e0b50ffa683d1a319985e3f72bb626;p=thirdparty%2Fdhcpcd.git Fix const --- diff --git a/dhcp6.c b/dhcp6.c index 290ec099..6c431cfd 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1820,7 +1820,7 @@ dhcp6_findia(struct interface *ifp, const struct dhcp6_message *m, size_t l, ap->flags |= IPV6_AF_STALE; } l -= sizeof(*m); - for (o = D6_FIRST_OPTION(m); l > sizeof(*o); o = D6_NEXT_OPTION(o)) { + for (o = D6_CFIRST_OPTION(m); l > sizeof(*o); o = D6_CNEXT_OPTION(o)) { ol = ntohs(o->len); if (sizeof(*o) + ol > l) { errno = EINVAL;