nsstest: Allocate the correct sized buffer for initgroups
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Feb 2012 02:46:29 +0000 (13:46 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Feb 2012 04:23:04 +0000 (05:23 +0100)
commitf260596206882a085fd43e5204acaecde72c3bab
tree49e56e93e4cfb9437cbe97b2dac70fe01497e6ab
parent8c3bbc09795937f359cbfee027821a4648b7d941
nsstest: Allocate the correct sized buffer for initgroups

Found by chance due to a re-order of the tests to start s3member
earlier and chasing down a malloc Abort into a valgrind error.  Only
happens when a user has more than 4 groups.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 20 05:23:04 CET 2012 on sn-devel-104
nsswitch/nsstest.c