- (dtucker) [openbsd-compat/getrrsetbyname.c] Restore Portable-specific

ifdef lost during sync.  Spotted by tim@.
This commit is contained in:
Darren Tucker 2005-11-12 14:06:29 +11:00
parent f032435de7
commit 16fd99c727
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
20051112
- (dtucker) [openbsd-compat/getrrsetbyname.c] Restore Portable-specific
ifdef lost during sync. Spotted by tim@.
20051110
- (dtucker) [openbsd-compat/setenv.c] Merge changes for __findenv from
OpenBSD getenv.c revs 1.4 - 1.8 (ANSIfication of arguments, removal of
@ -3292,4 +3296,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3989 2005/11/10 10:30:36 dtucker Exp $
$Id: ChangeLog,v 1.3990 2005/11/12 03:06:29 dtucker Exp $

View File

@ -262,9 +262,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 */
rrset->rri_name = strdup(response->answer->name);