summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-06 16:56:29 +0100
committerVolker Lendecke <vl@samba.org>2010-02-07 12:29:24 +0100
commite2ddda32897f96a336aa1c0f6198381a2843dd04 (patch)
tree3eeab4075a3cc0b8f163a7e4ec066448ba7813f4 /nsswitch
parent2607dc5ee87c84fc6b1419e5207f2ffaa5714af4 (diff)
downloadsamba-e2ddda32897f96a336aa1c0f6198381a2843dd04.tar.gz
samba-e2ddda32897f96a336aa1c0f6198381a2843dd04.tar.bz2
samba-e2ddda32897f96a336aa1c0f6198381a2843dd04.zip
libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/libwbclient/wbc_pam.c8
1 files changed, 3 insertions, 5 deletions
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);
}