summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-03 22:22:17 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 14:27:22 +0200
commit1ecdff2bf8fcf857c3b452f7259cbc1078954c06 (patch)
tree807b085d123ef12d23c8f08a5cfd1606ec329f59 /nsswitch/libwbclient
parentac8860d83d85ee80db510fe214abbfdc2bfdbef8 (diff)
downloadsamba-1ecdff2bf8fcf857c3b452f7259cbc1078954c06.tar.gz
samba-1ecdff2bf8fcf857c3b452f7259cbc1078954c06.tar.bz2
samba-1ecdff2bf8fcf857c3b452f7259cbc1078954c06.zip
libwbclient: Make wbc_create_password_policy_info not use talloc
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r--nsswitch/libwbclient/wbc_pam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index f66ea622bf..8c6b4ef58a 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;
}