diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
commit | a68b0d31a37a86785b3dbeeee3fad96ee71fadcd (patch) | |
tree | 61537b1f028002a9e6e0f5354fced6128bda8b9c /nss/nss_dns | |
parent | 2d07133b507b13d4a5ed6dc250f4345c8a26942a (diff) | |
download | glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.gz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.xz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.zip |
update from main archive 961001
Diffstat (limited to 'nss/nss_dns')
-rw-r--r-- | nss/nss_dns/dns-network.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nss/nss_dns/dns-network.c b/nss/nss_dns/dns-network.c index 1b5d0ce71b..a2d9d280a5 100644 --- a/nss/nss_dns/dns-network.c +++ b/nss/nss_dns/dns-network.c @@ -236,12 +236,12 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result, OSF/1 has a per-thread h_errno variable. */ if (header_pointer->aa != 0) { - h_errno = HOST_NOT_FOUND; + __set_h_errno (HOST_NOT_FOUND); return NSS_STATUS_NOTFOUND; } else { - h_errno = TRY_AGAIN; + __set_h_errno (TRY_AGAIN); return NSS_STATUS_TRYAGAIN; } @@ -338,7 +338,6 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result, return NSS_STATUS_SUCCESS; } - /* XXX Really use global variable??? */ - h_errno = TRY_AGAIN; + __set_h_errno (TRY_AGAIN); return NSS_STATUS_TRYAGAIN; } |