summaryrefslogtreecommitdiff
path: root/openbsd-compat/getrrsetbyname.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-12 14:06:29 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-12 14:06:29 +1100
commit16fd99c72702049030901b15a158a2159fe8f428 (patch)
tree8050c690e23be592f97b1af20fcb089a4408a951 /openbsd-compat/getrrsetbyname.c
parentf032435de7849ae80aa53df8028902711889a414 (diff)
- (dtucker) [openbsd-compat/getrrsetbyname.c] Restore Portable-specific
ifdef lost during sync. Spotted by tim@.
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 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);