mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL
This commit is contained in:
parent
2607dc5ee8
commit
e2ddda3289
@ -255,14 +255,13 @@ done:
|
|||||||
return wbc_status;
|
return wbc_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static wbcErr wbc_create_logon_info(TALLOC_CTX *mem_ctx,
|
static wbcErr wbc_create_logon_info(struct winbindd_response *resp,
|
||||||
struct winbindd_response *resp,
|
|
||||||
struct wbcLogonUserInfo **_i)
|
struct wbcLogonUserInfo **_i)
|
||||||
{
|
{
|
||||||
wbcErr wbc_status = WBC_ERR_SUCCESS;
|
wbcErr wbc_status = WBC_ERR_SUCCESS;
|
||||||
struct wbcLogonUserInfo *i;
|
struct wbcLogonUserInfo *i;
|
||||||
|
|
||||||
i = talloc_zero(mem_ctx, struct wbcLogonUserInfo);
|
i = talloc_zero(NULL, struct wbcLogonUserInfo);
|
||||||
BAIL_ON_PTR_ERROR(i, wbc_status);
|
BAIL_ON_PTR_ERROR(i, wbc_status);
|
||||||
|
|
||||||
wbc_status = wbc_create_auth_info(i, resp, &i->info);
|
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);
|
BAIL_ON_WBC_ERROR(wbc_status);
|
||||||
|
|
||||||
if (info) {
|
if (info) {
|
||||||
wbc_status = wbc_create_logon_info(NULL,
|
wbc_status = wbc_create_logon_info(&response,
|
||||||
&response,
|
|
||||||
info);
|
info);
|
||||||
BAIL_ON_WBC_ERROR(wbc_status);
|
BAIL_ON_WBC_ERROR(wbc_status);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user