Mercurial > hg > dhcpcd
changeset 2578:cc2c75cedfe4 draft
Fix const
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 07 Jul 2014 09:36:17 +0000 |
| parents | 87aeca01a829 |
| children | e8cfd1740182 |
| files | dhcp6.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Mon Jul 07 09:21:35 2014 +0000 +++ b/dhcp6.c Mon Jul 07 09:36:17 2014 +0000 @@ -1820,7 +1820,7 @@ 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;
