commit | b456b9fdfe76626ed76306b7af50a6532cb04ee5 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Wed Jan 02 17:59:28 2013 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Wed Jan 02 17:59:28 2013 +0000 |
tree | bbdf633e09fdda5a91b1abe39ae0dd7336ea8768 | |
parent | 34d0a36a1db65d7fb538c6c753f1fb90e0f039e3 [diff] [blame] |
Linked-list bug in new "use longest prefixes first" code.
diff --git a/src/dhcp6.c b/src/dhcp6.c index 8f2e053..dd88058 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c
@@ -236,6 +236,8 @@ for (up = ¶m->current, tmp = param->current; tmp; tmp = tmp->current) if (tmp->preferred <= preferred) break; + else + up = &tmp->current; context->current = *up; *up = context;