]> 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)
committerPetr Baudis <pasky@suse.cz>
Mon, 1 Nov 2010 21:03:34 +0000 (22:03 +0100)
(cherry picked from commit caa78cf824f98d6f02f2e39cb9cf253c8553946f)

ChangeLog
nis/nss_nis/nis-initgroups.c

index 1732fe528c4269cffaae88afcad88e16f0f3bb87..1ec9227e05d704022e5f730c7e03c3204fe040e7 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;