aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_namespace
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2019-11-04 08:47:16 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2019-11-04 08:47:16 +0100
commitc6bef96651ee861baf099a36f0cb1fd4d36669ca (patch)
tree11c34a89eea97a3416f70b58ed23dc3c4384fa41 /modules/pam_namespace
parent8cfdbe5025224a712f2de79f08463cec209bd152 (diff)
downloadpam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.tar.gz
pam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.tar.bz2
pam-c6bef96651ee861baf099a36f0cb1fd4d36669ca.zip
Optimize the checkgrouplist function
There is no point in rising the allocation size by doubling when we can allocate required memory size at once in the second pass. * libpam/pam_modutil_ingroup.c (checkgrouplist): Allocate some reasonable default size in first pass and required size in the second pass.
Diffstat (limited to 'modules/pam_namespace')
0 files changed, 0 insertions, 0 deletions