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;