summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv6-ia.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-05-21 16:21:59 +0200
committerSteven Barth <steven@midlink.org>2015-05-21 17:05:32 +0200
commit2ebf6c8216287983779c8ec6597d30893b914a7c (patch)
tree052c5ba2a5033867d1d10c0b76c7d5ac544d9b94 /src/dhcpv6-ia.c
parentdc671c62730d9ff20e7cf06322fb8db203e7bf3f (diff)
dhcpv6: fix typo
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r--src/dhcpv6-ia.c2
1 files changed, 1 insertions, 1 deletions
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));