mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Don't free blockdata for negative DS cache entries.
This commit is contained in:
@@ -183,7 +183,7 @@ static void cache_blockdata_free(struct crec *crecp)
|
|||||||
else
|
else
|
||||||
blockdata_free(crecp->addr.key.keydata);
|
blockdata_free(crecp->addr.key.keydata);
|
||||||
}
|
}
|
||||||
else if (crecp->flags & F_DS)
|
else if ((crecp->flags & F_DS) && !(crecp->flags & F_NEG))
|
||||||
blockdata_free(crecp->addr.ds.keydata);
|
blockdata_free(crecp->addr.ds.keydata);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ static void from_wire(char *name)
|
|||||||
l[len] = '.';
|
l[len] = '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l != name)
|
if ((char *)l != name)
|
||||||
*(l-1) = 0;
|
*(l-1) = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user