diff options
author | wpaul <wpaul@FreeBSD.org> | 1997-07-28 14:13:57 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1997-07-28 14:13:57 +0000 |
commit | b0b11b66e988857590d20cf377d4e7de9e8a0837 (patch) | |
tree | 2146b9d04d03ad056aa2258fb1b3e9b2b0bac1d0 /sys/net/if_sl.c | |
parent | cf77de89f4bd696d8178c536b220d4fc55a0632e (diff) | |
download | FreeBSD-src-b0b11b66e988857590d20cf377d4e7de9e8a0837.zip FreeBSD-src-b0b11b66e988857590d20cf377d4e7de9e8a0837.tar.gz |
Fix for PR #4147: apparently BIND now returns a status of NO_RECOVERY
at the end of gethostanswer()/getanswer()/whatever where it used to
return TRY_AGAIN. This breaks the domain list traversal in ypserv's
async DNS lookup module: it would only retry using the domain(s) from
the 'domain' or 'search' lines in /etc/resolv.conf if __dns_getanswer()
returned TRY_AGAIN.
Changed the test so that either TRY_AGAIN or NO_RECOVERY will work.
This seemed to me the best solution in the event somebody tries to
compile this code on an older system with a different version of BIND.
(You shouldn't do that of course, but then there's a lot of things
in the world that you shouldn't do and people do them anyway.)
Diffstat (limited to 'sys/net/if_sl.c')
0 files changed, 0 insertions, 0 deletions