Fix spin-crash in new CNAME code (b59a5c2567)

Thanks to Tore Anderson for finding this.
This commit is contained in:
Simon Kelley committed 2019-11-30 20:59:44 +00:00
1 parent 6ebdc95754
commit 4a1c21d62c
1 file changed
+3 -2
+3 -2
View File
@@ -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)