Fix access control when DHCPv6 but no RA in use.

This commit is contained in:
Simon Kelley
2012-05-29 17:06:02 +01:00
parent 9f7f3b1216
commit 51931b888a
3 changed files with 6 additions and 4 deletions

View File

@@ -158,7 +158,8 @@ void icmp6_packet(void)
return;
/* weird libvirt-inspired access control */
for (context = daemon->ra_contexts; context; context = context->next)
for (context = daemon->ra_contexts ? daemon->ra_contexts : daemon->dhcp6;
context; context = context->next)
if (!context->interface || strcmp(context->interface, interface) == 0)
break;