Fix spin-crash in new CNAME code (b59a5c2567)

Thanks to Tore Anderson for finding this.
This commit is contained in:
Simon Kelley
2019-11-30 20:59:44 +00:00
parent 6ebdc95754
commit 4a1c21d62c

View File

@@ -1389,8 +1389,9 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
anscount++; anscount++;
} }
strcpy(name, cname_target);
} }
strcpy(name, cname_target);
} }
if (qtype == T_TXT || qtype == T_ANY) if (qtype == T_TXT || qtype == T_ANY)