mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix crash freeing negative SRV cache entries.
Thanks to Daniel for finding this one.
This commit is contained in:
@@ -200,7 +200,7 @@ static void cache_hash(struct crec *crecp)
|
||||
|
||||
static void cache_blockdata_free(struct crec *crecp)
|
||||
{
|
||||
if (crecp->flags & F_SRV)
|
||||
if (crecp->flags & F_SRV && !(crecp->flags & F_NEG))
|
||||
blockdata_free(crecp->addr.srv.target);
|
||||
#ifdef HAVE_DNSSEC
|
||||
else if (crecp->flags & F_DNSKEY)
|
||||
|
||||
Reference in New Issue
Block a user