diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-06-14 16:54:43 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-06-14 16:54:43 -0700 |
commit | caa78cf824f98d6f02f2e39cb9cf253c8553946f (patch) | |
tree | 7e186924ad8711c0f875c080900cffe6472186c0 | |
parent | 46658a1cbccb564942a147a747a7579099773764 (diff) | |
download | glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.zip glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.tar.gz glibc-caa78cf824f98d6f02f2e39cb9cf253c8553946f.tar.bz2 |
Fix use of extend_alloca in NIS
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | nis/nss_nis/nis-initgroups.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 a5a3ba6..85b9eee 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; |