From: Steven Barth Date: Tue, 16 Jul 2013 12:01:52 +0000 (+0200) Subject: IPv6: fix prefix assignment with continuous hints X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2674941b06c1ec67f1aff1bff9212e1372106641;p=oweals%2Fnetifd.git IPv6: fix prefix assignment with continuous hints --- diff --git a/interface-ip.c b/interface-ip.c index 6698bac..29db745 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -639,7 +639,7 @@ static bool interface_prefix_assign(struct list_head *list, struct device_prefix_assignment *c; list_for_each_entry(c, list, head) { if (assign->assigned != -1) { - if (assign->assigned > current && assign->assigned + asize < c->assigned) { + if (assign->assigned >= current && assign->assigned + asize < c->assigned) { list_add_tail(&assign->head, &c->head); return true; }