From: Jeff Law Date: Fri, 23 Mar 2012 20:56:42 +0000 (-0600) Subject: 2012-03-23 Jeff Law X-Git-Tag: glibc-2.16-tps~715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a9b9c02fa9904ed410ba5a07d61a1119de39b7a;p=platform%2Fupstream%2Fglibc.git 2012-03-23 Jeff Law * nss/getnssent.c (__nss_getent): Fix typo. --- diff --git a/ChangeLog b/ChangeLog index b54b32e..21ad9ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-03-23 Jeff Law + + * nss/getnssent.c (__nss_getent): Fix typo. + 2012-03-23 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/nss/getnssent.c b/nss/getnssent.c index 014b376..6c1eac9 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)) {