]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2012-03-23 Jeff Law <law@redhat.com>
authorJeff Law <law@redhat.com>
Fri, 23 Mar 2012 20:56:42 +0000 (14:56 -0600)
committerJeff Law <law@redhat.com>
Fri, 23 Mar 2012 20:56:42 +0000 (14:56 -0600)
        * nss/getnssent.c (__nss_getent): Fix typo.

ChangeLog
nss/getnssent.c

index b54b32eed941732060537481bb79219d53a323d1..21ad9ec7c60fd12e31619ac24d982755f75f2d12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 014b37681bbd0f88a43d9dbacc900412ec6e56d9..6c1eac9d6d3dcf6f6b36c13ee9c5f2c08bf3b002 100644 (file)
@@ -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))
     {