summaryrefslogtreecommitdiff
path: root/openbsd-compat/getrrsetbyname.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2003-09-08 14:35:16 -0700
committerTim Rice <tim@multitalents.net>2003-09-08 14:35:16 -0700
commitb284e16c103bb87c444f372514fc2d1c6fb96033 (patch)
tree15923c37c754e64ce029940bafab9f6a51537224 /openbsd-compat/getrrsetbyname.c
parent0ac16a449218a88885f7b10bfb706c62e246496a (diff)
[configure.ac acconfig.h openbsd-compat/getrrsetbyname.c] test for
HEADER.ad in arpa/nameser.h
Diffstat (limited to 'openbsd-compat/getrrsetbyname.c')
-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);