From b456b9fdfe76626ed76306b7af50a6532cb04ee5 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 2 Jan 2013 17:59:28 +0000 Subject: [PATCH] Linked-list bug in new "use longest prefixes first" code. --- src/dhcp6.c | 2 ++ 1 file changed, 2 insertions(+) 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 @@ static int complete_context6(struct in6_addr *local, int prefix, 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;