]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nss/getnssent.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / nss / getnssent.c
index 014b37681bbd0f88a43d9dbacc900412ec6e56d9..fdaeed1e7b9e219f3e612da78aad664a4595c55c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2017 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))
     {