From e2ddda32897f96a336aa1c0f6198381a2843dd04 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 Feb 2010 16:56:29 +0100 Subject: libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL --- nsswitch/libwbclient/wbc_pam.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nsswitch') diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index c9034ce62d..fdb297fae3 100644 --- a/nsswitch/libwbclient/wbc_pam.c +++ b/nsswitch/libwbclient/wbc_pam.c @@ -255,14 +255,13 @@ done: return wbc_status; } -static wbcErr wbc_create_logon_info(TALLOC_CTX *mem_ctx, - struct winbindd_response *resp, +static wbcErr wbc_create_logon_info(struct winbindd_response *resp, struct wbcLogonUserInfo **_i) { wbcErr wbc_status = WBC_ERR_SUCCESS; struct wbcLogonUserInfo *i; - i = talloc_zero(mem_ctx, struct wbcLogonUserInfo); + i = talloc_zero(NULL, struct wbcLogonUserInfo); BAIL_ON_PTR_ERROR(i, wbc_status); wbc_status = wbc_create_auth_info(i, resp, &i->info); @@ -1083,8 +1082,7 @@ wbcErr wbcLogonUser(const struct wbcLogonUserParams *params, BAIL_ON_WBC_ERROR(wbc_status); if (info) { - wbc_status = wbc_create_logon_info(NULL, - &response, + wbc_status = wbc_create_logon_info(&response, info); BAIL_ON_WBC_ERROR(wbc_status); } -- cgit