IPv6: fix prefix assignment with continuous hints
authorSteven Barth <steven@midlink.org>
Tue, 16 Jul 2013 12:01:52 +0000 (14:01 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 16 Jul 2013 12:01:52 +0000 (14:01 +0200)
interface-ip.c

index 6698bac9ffeeb3bd8ef058ce640c2a637cd9d92e..29db745300ada4571e32ff75018dc92b9a03228b 100644 (file)
@@ -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;
                        }