ipasam: fix wrong usage of talloc_new()

Fixes https://fedorahosted.org/freeipa/ticket/5457

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Sumit Bose
2015-11-18 12:29:43 +01:00
committed by Tomas Babej
parent 84e479edaa
commit 3d6fdab904

View File

@@ -3027,7 +3027,7 @@ static int ipasam_get_sid_by_gid(struct ldapsam_privates *ldap_state,
enum idmap_error_code err; enum idmap_error_code err;
struct unixid id; struct unixid id;
tmp_ctx = talloc_new("ipasam_get_sid_by_gid"); tmp_ctx = talloc_init("ipasam_get_sid_by_gid");
if (tmp_ctx == NULL) { if (tmp_ctx == NULL) {
return ENOMEM; return ENOMEM;
} }