diff options
Diffstat (limited to 'contrib/librdns/resolver.c')
-rw-r--r-- | contrib/librdns/resolver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c index 4027bf0ab..20700ee3b 100644 --- a/contrib/librdns/resolver.c +++ b/contrib/librdns/resolver.c @@ -119,6 +119,7 @@ rdns_make_reply (struct rdns_request *req, enum dns_rcode rcode) rep->entries = NULL; rep->code = rcode; req->reply = rep; + rep->authenticated = false; } return rep; @@ -190,6 +191,10 @@ rdns_parse_reply (uint8_t *in, int r, struct rdns_request *req, */ rep = rdns_make_reply (req, header->rcode); + if (header->ad) { + rep->authenticated = true; + } + if (rep == NULL) { rdns_warn ("Cannot allocate memory for reply"); return false; |