Always force AD bit to zero in authoritative DNS answers.

This commit is contained in:
Simon Kelley
2019-08-20 23:17:27 +01:00
parent 240da59f73
commit dc6a57ffb8

View File

@@ -836,6 +836,9 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n
header->hb4 &= ~HB4_RA;
}
/* data is never DNSSEC signed. */
header->hb4 &= ~HB4_AD;
/* authoritative */
if (auth)
header->hb3 |= HB3_AA;