summaryrefslogtreecommitdiff
path: root/nss/getXXent.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/getXXent.c')
-rw-r--r--nss/getXXent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/getXXent.c b/nss/getXXent.c
index e40d41b51e..497c0dee22 100644
--- a/nss/getXXent.c
+++ b/nss/getXXent.c
@@ -85,11 +85,11 @@ GETFUNC_NAME (void)
while (buffer != NULL
&& INTERNAL (REENTRANT_GETNAME) (&resbuf, buffer, buffer_size, &result
- H_ERRNO_VAR) != 0
+ H_ERRNO_VAR) == ERANGE
#ifdef NEED_H_ERRNO
&& h_errno == NETDB_INTERNAL
#endif
- && errno == ERANGE)
+ )
{
char *new_buf;
buffer_size += BUFLEN;