1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00

Fix buffer allocation in files initgroups handler

This commit is contained in:
Andreas Schwab
2011-11-07 11:43:13 +01:00
parent 998832a466
commit ae1bc2fa1c
2 changed files with 6 additions and 1 deletions

View File

@@ -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;