summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/getrrsetbyname.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 8d571beea..bea6aea3b 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -262,9 +262,11 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
262 rrset->rri_ttl = response->answer->ttl; 262 rrset->rri_ttl = response->answer->ttl;
263 rrset->rri_nrdatas = response->header.ancount; 263 rrset->rri_nrdatas = response->header.ancount;
264 264
265#ifdef HAVE_HEADER_AD
265 /* check for authenticated data */ 266 /* check for authenticated data */
266 if (response->header.ad == 1) 267 if (response->header.ad == 1)
267 rrset->rri_flags |= RRSET_VALIDATED; 268 rrset->rri_flags |= RRSET_VALIDATED;
269#endif
268 270
269 /* copy name from answer section */ 271 /* copy name from answer section */
270 rrset->rri_name = strdup(response->answer->name); 272 rrset->rri_name = strdup(response->answer->name);