aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-11-07 11:43:13 +0100
committerAndreas Schwab <schwab@redhat.com>2011-11-07 11:49:51 +0100
commitae1bc2fa1c58b13ffa83483c24e547148762e24f (patch)
tree237d1c1f0fa89c27ef3a05c6e02aec35268343b8 /nss
parent998832a46688b9fb3a101eccae77bc45e7c1d7ab (diff)
downloadglibc-ae1bc2fa1c58b13ffa83483c24e547148762e24f.zip
glibc-ae1bc2fa1c58b13ffa83483c24e547148762e24f.tar.gz
glibc-ae1bc2fa1c58b13ffa83483c24e547148762e24f.tar.bz2
Fix buffer allocation in files initgroups handler
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_files/files-initgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/nss_files/files-initgroups.c b/nss/nss_files/files-initgroups.c
index c343b35..2f88f60 100644
--- a/nss/nss_files/files-initgroups.c
+++ b/nss/nss_files/files-initgroups.c
@@ -73,7 +73,7 @@ _nss_files_initgroups_dyn (const char *user, gid_t group, long int *start,
if (buffer_use_malloc || ! __libc_use_alloca (buflen + newbuflen))
{
void *newbuf = realloc (buffer_use_malloc ? buffer : NULL,
- buflen);
+ newbuflen);
if (newbuf == NULL)
{
*errnop = ENOMEM;