From: Steven Barth Date: Thu, 21 May 2015 14:21:59 +0000 (+0200) Subject: dhcpv6: fix typo X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=commitdiff_plain;h=2ebf6c8216287983779c8ec6597d30893b914a7c dhcpv6: fix typo --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index a6ea66f..0bcb453 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -758,7 +758,7 @@ static size_t append_reply(uint8_t *buf, size_t buflen, uint16_t status, if (datalen + entrlen + 4 > buflen || (a->assigned == 0 && a->managed_size == 0) || - (!a->managed_size && a->length < p.preferred)) + (!a->managed_size && a->length <= addrs[i].prefix)) continue; memcpy(buf + datalen, &p, sizeof(p));