aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-06-14 16:54:43 -0700
committerUlrich Drepper <drepper@redhat.com>2010-06-14 16:54:43 -0700
commitcaa78cf824f98d6f02f2e39cb9cf253c8553946f (patch)
tree7e186924ad8711c0f875c080900cffe6472186c0
parent46658a1cbccb564942a147a747a7579099773764 (diff)
downloadglibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.tar
glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.tar.gz
glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.tar.bz2
glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.zip
Fix use of extend_alloca in NIS
-rw-r--r--ChangeLog4
-rw-r--r--nis/nss_nis/nis-initgroups.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b25c3f292..e2b4da286f 100644
--- 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
diff --git a/nis/nss_nis/nis-initgroups.c b/nis/nss_nis/nis-initgroups.c
index a5a3ba6144..85b9eeecc1 100644
--- a/nis/nss_nis/nis-initgroups.c
+++ b/nis/nss_nis/nis-initgroups.c
@@ -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;