mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix spin-crash in new CNAME code (b59a5c2567)
Thanks to Tore Anderson for finding this.
This commit is contained in:
@@ -1388,9 +1388,10 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
|
||||
T_CNAME, C_IN, "d", cname_target))
|
||||
anscount++;
|
||||
}
|
||||
|
||||
strcpy(name, cname_target);
|
||||
|
||||
}
|
||||
|
||||
strcpy(name, cname_target);
|
||||
}
|
||||
|
||||
if (qtype == T_TXT || qtype == T_ANY)
|
||||
|
||||
Reference in New Issue
Block a user