diff options
author | Jeff Law <law@redhat.com> | 2012-03-23 14:56:42 -0600 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2012-03-23 14:56:42 -0600 |
commit | 6a9b9c02fa9904ed410ba5a07d61a1119de39b7a (patch) | |
tree | be96be2fad04991f6a9936e5503e501e7d39d97c | |
parent | 4c42a0c1d5860932e6ed478d6797129a18f01e2a (diff) | |
download | glibc-6a9b9c02fa9904ed410ba5a07d61a1119de39b7a.tar glibc-6a9b9c02fa9904ed410ba5a07d61a1119de39b7a.tar.gz glibc-6a9b9c02fa9904ed410ba5a07d61a1119de39b7a.tar.bz2 glibc-6a9b9c02fa9904ed410ba5a07d61a1119de39b7a.zip |
2012-03-23 Jeff Law <law@redhat.com>
* nss/getnssent.c (__nss_getent): Fix typo.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | nss/getnssent.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2012-03-23 Jeff Law <law@redhat.com> + + * nss/getnssent.c (__nss_getent): Fix typo. + 2012-03-23 David S. Miller <davem@davemloft.net> * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/nss/getnssent.c b/nss/getnssent.c index 014b37681b..6c1eac9d6d 100644 --- a/nss/getnssent.c +++ b/nss/getnssent.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2004 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2004, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,7 +32,7 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer, *buffer = malloc (*buffer_size); } - while (buffer != NULL + while (*buffer != NULL && func (resbuf, *buffer, *buffer_size, &result, h_errnop) == ERANGE && (h_errnop == NULL || *h_errnop == NETDB_INTERNAL)) { |