mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
extdom: fix wrong realloc size
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Sumit Bose <sbose@redhat.com>
This commit is contained in:
parent
447c5c7b0d
commit
fd8e796873
@ -386,7 +386,7 @@ static int get_user_grouplist(const char *name, gid_t gid,
|
||||
|
||||
ret = getgrouplist(name, gid, groups, &ngroups);
|
||||
if (ret == -1) {
|
||||
new_groups = realloc(groups, ngroups);
|
||||
new_groups = realloc(groups, ngroups * sizeof(gid_t));
|
||||
if (new_groups == NULL) {
|
||||
free(groups);
|
||||
return LDAP_OPERATIONS_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user