Commit b456b9fd authored by Simon Kelley's avatar Simon Kelley

Linked-list bug in new "use longest prefixes first" code.

parent 34d0a36a
......@@ -236,6 +236,8 @@ static int complete_context6(struct in6_addr *local, int prefix,
for (up = &param->current, tmp = param->current; tmp; tmp = tmp->current)
if (tmp->preferred <= preferred)
break;
else
up = &tmp->current;
context->current = *up;
*up = context;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment