mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-24 20:32:00 +00:00
Fix access control when DHCPv6 but no RA in use.
This commit is contained in:
1 parent
9f7f3b1216
commit
51931b888a
3 files changed
+6
-4
No files matched your search
+3
-2
@@ -407,10 +407,11 @@ static int join_multicast_worker(struct in6_addr *local, int prefix,
|
||||
return 1;
|
||||
|
||||
/* 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, ifrn_name) == 0)
|
||||
break;
|
||||
|
||||
|
||||
if (!context)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user