summaryrefslogtreecommitdiffstats
path: root/lib/libc
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
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')
-rw-r--r--lib/libc/net/gethostbyht.c2
-rw-r--r--lib/libc/net/gethostbynis.c2
-rw-r--r--lib/libc/net/getnetbyht.c2
-rw-r--r--lib/libc/net/getnetbynis.c2
4 files changed, 4 insertions, 4 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);
diff --git a/lib/libc/net/gethostbynis.c b/lib/libc/net/gethostbynis.c
index e9cc205..34fd289 100644
--- a/lib/libc/net/gethostbynis.c
+++ b/lib/libc/net/gethostbynis.c
@@ -121,7 +121,7 @@ _gethostbynis(const char *name, char *map, int af, struct hostent *he,
*p++ = '\0';
size = strlen(cp) + 1;
if (ep - bp < size) {
- h_errno = NETDB_INTERNAL;
+ h_errno = NO_RECOVERY;
return -1;
}
strlcpy(bp, cp, ep - bp);
diff --git a/lib/libc/net/getnetbyht.c b/lib/libc/net/getnetbyht.c
index 716deec..fb6ee4d 100644
--- a/lib/libc/net/getnetbyht.c
+++ b/lib/libc/net/getnetbyht.c
@@ -111,7 +111,7 @@ again:
*cp++ = '\0';
len = strlen(p) + 1;
if (ep - bp < len) {
- h_errno = NETDB_INTERNAL;
+ h_errno = NO_RECOVERY;
return -1;
}
strlcpy(bp, p, ep - bp);
diff --git a/lib/libc/net/getnetbynis.c b/lib/libc/net/getnetbynis.c
index de5ccd1..4725cfb 100644
--- a/lib/libc/net/getnetbynis.c
+++ b/lib/libc/net/getnetbynis.c
@@ -88,7 +88,7 @@ _getnetbynis(const char *name, char *map, int af, struct netent *ne,
ep = ned->netbuf + sizeof ned->netbuf;
len = strlen(result) + 1;
if (ep - bp < len) {
- h_errno = NETDB_INTERNAL;
+ h_errno = NO_RECOVERY;
return -1;
}
strlcpy(bp, result, ep - bp);
OpenPOWER on IntegriCloud