Fix logic inversion
authorSteven Barth <steven@midlink.org>
Tue, 14 Apr 2015 14:18:01 +0000 (16:18 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 14 Apr 2015 14:21:39 +0000 (16:21 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
src/dhcpv6-ia.c

index 1476e021a590d713d4882c94bc2771e2a2f35b50..7e8e53520036ebab024101705838877c958a04df 100644 (file)
@@ -596,7 +596,7 @@ static void update(struct interface *iface)
        }
 
        struct dhcpv6_assignment *border = list_last_entry(&iface->ia_assignments, struct dhcpv6_assignment, head);
-       if (minprefix <= 32 || minprefix > 64)
+       if (minprefix > 32 && minprefix <= 64)
                border->assigned = 1U << (64 - minprefix);
        else
                border->assigned = 0;