Fix a race-condition in prefix-assignment
authorSteven Barth <steven@midlink.org>
Tue, 15 Jan 2013 12:19:34 +0000 (13:19 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 15 Jan 2013 12:30:51 +0000 (13:30 +0100)
interface-ip.c

index 99f654048e2a5cf67c4aa81faadbd751942133ca..b5613b2283d85debacacbdc1d09a231305ec2c3f 100644 (file)
@@ -529,7 +529,6 @@ interface_ip_set_prefix_assignment(struct device_prefix *prefix,
                if (assignment)
                        interface_set_prefix_address(iface, false, assignment);
        } else {
-               uint8_t length = iface->proto_ip.assignment_length;
                uint64_t want = 1ULL << (64 - length);
                char *name;