mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
fixed typo in getgroups code
(This used to be commit 046e8a50219ca69ab326fa672c5fcb1ab3689b3b)
This commit is contained in:
parent
fab6d20f5d
commit
80ae082c87
@ -673,7 +673,9 @@ int sys_getgroups(int setlen, gid_t *gidset)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if((group_list = (GID_T *)malloc(setlen * sizoef(GID_T))) == NULL) {
|
||||
if (setlen == 0) setlen = 1;
|
||||
|
||||
if((group_list = (GID_T *)malloc(setlen * sizeof(GID_T))) == NULL) {
|
||||
DEBUG(0,("sys_getgroups: Malloc fail.\n"));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user