From 1ecdff2bf8fcf857c3b452f7259cbc1078954c06 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 3 Apr 2010 22:22:17 +0200 Subject: libwbclient: Make wbc_create_password_policy_info not use talloc --- nsswitch/libwbclient/wbc_pam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nsswitch/libwbclient/wbc_pam.c') diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index f66ea622bfa..8c6b4ef58a0 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -247,7 +247,8 @@ static wbcErr wbc_create_password_policy_info(const struct winbindd_response *re wbcErr wbc_status = WBC_ERR_SUCCESS; struct wbcUserPasswordPolicyInfo *i; - i = talloc(NULL, struct wbcUserPasswordPolicyInfo); + i = (struct wbcUserPasswordPolicyInfo *)wbcAllocateMemory( + sizeof(struct wbcUserPasswordPolicyInfo), 1, NULL); BAIL_ON_PTR_ERROR(i, wbc_status); i->min_passwordage = resp->data.auth.policy.min_passwordage; @@ -260,7 +261,7 @@ static wbcErr wbc_create_password_policy_info(const struct winbindd_response *re i = NULL; done: - talloc_free(i); + wbcFreeMemory(i); return wbc_status; } -- cgit v1.2.1