mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Tidy cache_blockdata_free()
This commit is contained in:
15
src/cache.c
15
src/cache.c
@@ -200,14 +200,17 @@ static void cache_hash(struct crec *crecp)
|
|||||||
|
|
||||||
static void cache_blockdata_free(struct crec *crecp)
|
static void cache_blockdata_free(struct crec *crecp)
|
||||||
{
|
{
|
||||||
if (crecp->flags & F_SRV && !(crecp->flags & F_NEG))
|
if (!(crecp->flags & F_NEG))
|
||||||
blockdata_free(crecp->addr.srv.target);
|
{
|
||||||
|
if (crecp->flags & F_SRV)
|
||||||
|
blockdata_free(crecp->addr.srv.target);
|
||||||
#ifdef HAVE_DNSSEC
|
#ifdef HAVE_DNSSEC
|
||||||
else if (crecp->flags & F_DNSKEY)
|
else if (crecp->flags & F_DNSKEY)
|
||||||
blockdata_free(crecp->addr.key.keydata);
|
blockdata_free(crecp->addr.key.keydata);
|
||||||
else if ((crecp->flags & F_DS) && !(crecp->flags & F_NEG))
|
else if (crecp->flags & F_DS)
|
||||||
blockdata_free(crecp->addr.ds.keydata);
|
blockdata_free(crecp->addr.ds.keydata);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cache_free(struct crec *crecp)
|
static void cache_free(struct crec *crecp)
|
||||||
|
|||||||
Reference in New Issue
Block a user