lib: Avoid a malloc/realloc in getgroups_unix_user
authorVolker Lendecke <vl@samba.org>
Mon, 9 Mar 2015 21:04:04 +0000 (22:04 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 11 Mar 2015 15:11:08 +0000 (16:11 +0100)
commit2b3a2b0674beb3e45fc29514356bad7ec252abd2
tree3d367827eee6c2aacff036c81bbc3a2159f5fc9d
parent4cbc9369fbba309e55d82ce5f53c168c4ee0e941
lib: Avoid a malloc/realloc in getgroups_unix_user

This avoids a malloc/free in the most common case of a user with just a few
group memberships

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/system_smbd.c