]> 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)
committerUlrich Drepper <drepper@redhat.com>
Mon, 14 Jun 2010 23:54:43 +0000 (16:54 -0700)
ChangeLog
nis/nss_nis/nis-initgroups.c

index 7b25c3f292dce64b74e7690c6491833cba3571fc..e2b4da286fc3b69fb005b07251b737fbf08b3d1c 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-14  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
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;