From ae1bc2fa1c58b13ffa83483c24e547148762e24f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 7 Nov 2011 11:43:13 +0100 Subject: Fix buffer allocation in files initgroups handler --- nss/nss_files/files-initgroups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/nss_files/files-initgroups.c') diff --git a/nss/nss_files/files-initgroups.c b/nss/nss_files/files-initgroups.c index c343b35e56..2f88f602e7 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; -- cgit v1.2.3-70-g09d2