summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyht.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-04-29 17:36:54 +0000
committerume <ume@FreeBSD.org>2005-04-29 17:36:54 +0000
commita63da374584b9b7edef7e959555e8c7f6be46187 (patch)
treeb0f54c0464c6b5742b0bfcccfdb1545b3cb2f0c5 /lib/libc/net/gethostbyht.c
parent5b818d6be05c5493c221aef9f0499efccae64a88 (diff)
downloadFreeBSD-src-a63da374584b9b7edef7e959555e8c7f6be46187.zip
FreeBSD-src-a63da374584b9b7edef7e959555e8c7f6be46187.tar.gz
NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.
Diffstat (limited to 'lib/libc/net/gethostbyht.c')
-rw-r--r--lib/libc/net/gethostbyht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/gethostbyht.c b/lib/libc/net/gethostbyht.c
index efa8269..7024ef2 100644
--- a/lib/libc/net/gethostbyht.c
+++ b/lib/libc/net/gethostbyht.c
@@ -146,7 +146,7 @@ gethostent_r(struct hostent *he, struct hostent_data *hed)
*p++ = '\0';
len = strlen(cp) + 1;
if (ep - bp < len) {
- h_errno = NETDB_INTERNAL;
+ h_errno = NO_RECOVERY;
return -1;
}
strlcpy(bp, cp, ep - bp);
OpenPOWER on IntegriCloud