diff options
-rw-r--r-- | lib/libc/net/gethostbyht.c | 2 | ||||
-rw-r--r-- | lib/libc/net/gethostbynis.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getnetbyht.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getnetbynis.c | 2 |
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); |