extdom: fix wrong realloc size

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Sumit Bose <sbose@redhat.com>
This commit is contained in:
Sumit Bose authored and Petr Vobornik committed 2015-03-26 14:58:37 +01:00
1 parent 704c79d91d
commit c1114ef825
1 file changed
+1 -1
@@ -416,7 +416,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;