From: Steven Barth Date: Tue, 15 Jan 2013 12:19:34 +0000 (+0100) Subject: Fix a race-condition in prefix-assignment X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=72ebaba19ded36b101f3be0f233361970f8eec13;p=oweals%2Fnetifd.git Fix a race-condition in prefix-assignment --- 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;