mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Linked-list bug in new "use longest prefixes first" code.
This commit is contained in:
@@ -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)
|
for (up = ¶m->current, tmp = param->current; tmp; tmp = tmp->current)
|
||||||
if (tmp->preferred <= preferred)
|
if (tmp->preferred <= preferred)
|
||||||
break;
|
break;
|
||||||
|
else
|
||||||
|
up = &tmp->current;
|
||||||
|
|
||||||
context->current = *up;
|
context->current = *up;
|
||||||
*up = context;
|
*up = context;
|
||||||
|
|||||||
Reference in New Issue
Block a user