summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-01-15 13:19:34 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-15 13:30:51 +0100
commit72ebaba19ded36b101f3be0f233361970f8eec13 (patch)
tree405203aa756575eef2952215ddf815399b4007b4
parent94c8619d72e65b36aa2a6f5b8157bc479f252473 (diff)
Fix a race-condition in prefix-assignment
-rw-r--r--interface-ip.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 99f6540..b5613b2 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -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;