diff options
author | Sumit Bose <sbose@redhat.com> | 2015-02-25 10:28:22 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-03-26 14:58:37 +0100 |
commit | c1114ef82516002de08e004a930b5ba4a1791b25 (patch) | |
tree | 41142f3261e88f0e2975915d766cbc1a7e4723bc /daemons | |
parent | 704c79d91d58f87b80afe6e9331e8060116b5ec0 (diff) | |
download | freeipa-c1114ef82516002de08e004a930b5ba4a1791b25.tar.gz freeipa-c1114ef82516002de08e004a930b5ba4a1791b25.tar.xz freeipa-c1114ef82516002de08e004a930b5ba4a1791b25.zip |
extdom: fix wrong realloc size
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c index 2c08e56d6..b2e690471 100644 --- a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c +++ b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_common.c @@ -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; |