From: Volker Lendecke Date: Sat, 6 Feb 2010 15:56:29 +0000 (+0100) Subject: libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL X-Git-Tag: samba-3.6.0pre1~5550 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ddda32897f96a336aa1c0f6198381a2843dd04;p=thirdparty%2Fsamba.git libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL --- diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c index c9034ce62d5..fdb297fae3b 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); }