From: Steven Barth Date: Sat, 18 Jan 2014 10:09:26 +0000 (+0100) Subject: Fix another memory corruption X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=482a8b369deca0c485b5d39e5ac302ed5ad42499;p=project%2Fodhcpd.git Fix another memory corruption --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 88840a4..4d68258 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -101,6 +101,7 @@ int setup_dhcpv6_ia_interface(struct interface *iface, bool enable) list_for_each_entry(c, &iface->ia_assignments, head) { if (c->length != 128 || c->assigned > a->assigned) { list_add_tail(&a->head, &c->head); + break; } else if (c->assigned == a->assigned) { // Already an assignment with that number break;