diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-06 16:54:05 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-07 12:29:24 +0100 |
commit | 2607dc5ee87c84fc6b1419e5207f2ffaa5714af4 (patch) | |
tree | f6918a7e4f508ad80ddd5b77bd3e7cc3092c284d | |
parent | 1b2aad29a837d04580ee4ab5336b65cfb172ed1d (diff) | |
download | samba-2607dc5ee87c84fc6b1419e5207f2ffaa5714af4.tar.gz samba-2607dc5ee87c84fc6b1419e5207f2ffaa5714af4.tar.bz2 samba-2607dc5ee87c84fc6b1419e5207f2ffaa5714af4.zip |
libwbclient: wbc_create_password_policy_info is always called with mem_ctx==NULL
-rw-r--r-- | nsswitch/libwbclient/wbc_pam.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index e6a7c095bd..c9034ce62d 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -232,14 +232,13 @@ done: return wbc_status; } -static wbcErr wbc_create_password_policy_info(TALLOC_CTX *mem_ctx, - const struct winbindd_response *resp, +static wbcErr wbc_create_password_policy_info(const struct winbindd_response *resp, struct wbcUserPasswordPolicyInfo **_i) { wbcErr wbc_status = WBC_ERR_SUCCESS; struct wbcUserPasswordPolicyInfo *i; - i = talloc(mem_ctx, struct wbcUserPasswordPolicyInfo); + i = talloc(NULL, struct wbcUserPasswordPolicyInfo); BAIL_ON_PTR_ERROR(i, wbc_status); i->min_passwordage = resp->data.auth.policy.min_passwordage; @@ -918,8 +917,7 @@ wbcErr wbcChangeUserPasswordEx(const struct wbcChangePasswordParams *params, } if (policy) { - wbc_status = wbc_create_password_policy_info(NULL, - &response, + wbc_status = wbc_create_password_policy_info(&response, policy); BAIL_ON_WBC_ERROR(wbc_status); } @@ -1092,8 +1090,7 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params, } if (policy) { - wbc_status = wbc_create_password_policy_info(NULL, - &response, + wbc_status = wbc_create_password_policy_info(&response, policy); BAIL_ON_WBC_ERROR(wbc_status); } |