mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-07 16:01:41 +00:00
Putative fix to crash in IPv4 DHCP, introduced whilst
generalising the DHCP option filter code: don't match options against context tag when context->netid.net == NULL, since there's no tag then.
This commit is contained in:
1 parent
60ac5af682
commit
6caacacf6d
3 files changed
+4
-4
No files matched your search
+1
-2
@@ -504,10 +504,9 @@ u64 lease_find_max_addr6(struct dhcp_context *context)
|
||||
if (!(context->flags & (CONTEXT_STATIC | CONTEXT_PROXY)))
|
||||
for (lease = leases; lease; lease = lease->next)
|
||||
{
|
||||
#ifdef HAVE_DHCP6
|
||||
if (!(lease->flags & (LEASE_TA | LEASE_NA)))
|
||||
continue;
|
||||
#endif
|
||||
|
||||
if (is_same_net6((struct in6_addr *)lease->hwaddr, &context->start6, 64) &&
|
||||
addr6part((struct in6_addr *)lease->hwaddr) > addr6part(&context->start6) &&
|
||||
addr6part((struct in6_addr *)lease->hwaddr) <= addr6part(&context->end6) &&
|
||||
|
||||
Reference in new issue
Block a user