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)
downloadopenssh-git-b284e16c103bb87c444f372514fc2d1c6fb96033.tar.gz
[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 3f75590e..44fa2755 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -243,9 +243,11 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
rrset->rri_ttl = response->answer->ttl;
rrset->rri_nrdatas = response->header.ancount;
+#ifdef HAVE_HEADER_AD
/* check for authenticated data */
if (response->header.ad == 1)
rrset->rri_flags |= RRSET_VALIDATED;
+#endif
/* copy name from answer section */
length = strlen(response->answer->name);