mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix (benign) use of uninitialised data.
This commit is contained in:
@@ -596,18 +596,18 @@ static int find_soa(struct dns_header *header, size_t qlen, char *name, int *sub
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* rest of RR */
|
/* rest of RR */
|
||||||
if (!no_cache && !blockdata_expand(addr.rrblock.rrdata, addr.rrblock.datalen, (char *)p, 20))
|
|
||||||
{
|
|
||||||
blockdata_free(addr.rrblock.rrdata);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
addr.rrblock.datalen += 20;
|
|
||||||
|
|
||||||
if (!no_cache)
|
if (!no_cache)
|
||||||
{
|
{
|
||||||
int secflag = 0;
|
int secflag = 0;
|
||||||
|
|
||||||
|
if (!blockdata_expand(addr.rrblock.rrdata, addr.rrblock.datalen, (char *)p, 20))
|
||||||
|
{
|
||||||
|
blockdata_free(addr.rrblock.rrdata);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
addr.rrblock.datalen += 20;
|
||||||
|
|
||||||
#ifdef HAVE_DNSSEC
|
#ifdef HAVE_DNSSEC
|
||||||
if (option_bool(OPT_DNSSEC_VALID) && daemon->rr_status[i + ntohs(header->ancount)] != 0)
|
if (option_bool(OPT_DNSSEC_VALID) && daemon->rr_status[i + ntohs(header->ancount)] != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user