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 3f75590e2..44fa2755b 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -243,9 +243,11 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
243 rrset->rri_ttl = response->answer->ttl; 243 rrset->rri_ttl = response->answer->ttl;
244 rrset->rri_nrdatas = response->header.ancount; 244 rrset->rri_nrdatas = response->header.ancount;
245 245
246#ifdef HAVE_HEADER_AD
246 /* check for authenticated data */ 247 /* check for authenticated data */
247 if (response->header.ad == 1) 248 if (response->header.ad == 1)
248 rrset->rri_flags |= RRSET_VALIDATED; 249 rrset->rri_flags |= RRSET_VALIDATED;
250#endif
249 251
250 /* copy name from answer section */ 252 /* copy name from answer section */
251 length = strlen(response->answer->name); 253 length = strlen(response->answer->name);