]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix use of extend_alloca in NIS
authorAndreas Schwab <schwab@redhat.com>
Mon, 14 Jun 2010 23:54:43 +0000 (16:54 -0700)
committerAndreas Schwab <schwab@redhat.com>
Tue, 15 Jun 2010 12:56:04 +0000 (14:56 +0200)
(cherry picked from commit caa78cf824f98d6f02f2e39cb9cf253c8553946f)

ChangeLog
nis/nss_nis/nis-initgroups.c

index c32d375c8bd50951b9ac6840909a660c5752d94c..e30fe1e41b08ea5f2d8033feec3f9b1b17992418 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-02  Andreas Schwab  <schwab@redhat.com>
+
+       * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
+
 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
 
        * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
index a5a3ba614448ce908904e774a794afbd195dd42f..85b9eeecc15a916652ccae1669f362594fbf6e86 100644 (file)
@@ -139,7 +139,7 @@ get_uid (const char *user, uid_t *uidp)
       if (r != ERANGE)
        break;
 
-      extend_alloca (buf, buflen, 2 * buflen);
+      buf = extend_alloca (buf, buflen, 2 * buflen);
     }
 
   return 1;