zero arcount.

This commit is contained in:
Simon Kelley committed 2012-12-06 19:41:35 +00:00
1 parent 7c305be1bd
commit aa79235194
1 file changed
+1
+1
View File
@@ -490,6 +490,7 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
SET_RCODE(header, NOERROR); /* no error */
header->ancount = htons(anscount);
header->nscount = htons(authcount);
header->arcount = htons(0);
return ansp - (unsigned char *)header;
}