summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_pam.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-04 11:58:04 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 14:27:23 +0200
commit802876af3b29a628f9489f17424b83cb17b194e0 (patch)
treecbffd5340b4f0d9ce9903b6570b2792904532e37 /nsswitch/libwbclient/wbc_pam.c
parent406e55fafb54059a3fe91aa0111e83dad2fac6d5 (diff)
downloadsamba-802876af3b29a628f9489f17424b83cb17b194e0.tar.gz
samba-802876af3b29a628f9489f17424b83cb17b194e0.tar.bz2
samba-802876af3b29a628f9489f17424b83cb17b194e0.zip
libwbclient: Make wbcAuthenticateUserEx not use talloc
Diffstat (limited to 'nsswitch/libwbclient/wbc_pam.c')
-rw-r--r--nsswitch/libwbclient/wbc_pam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index 892ccb7aa2..e40d55e969 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -468,7 +468,8 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
if (params->password.response.nt_length > sizeof(request.data.auth_crap.nt_resp)) {
request.flags |= WBFLAG_BIG_NTLMV2_BLOB;
request.extra_len = params->password.response.nt_length;
- request.extra_data.data = talloc_zero_array(NULL, char, request.extra_len);
+ request.extra_data.data = (char *)malloc(
+ request.extra_len);
if (request.extra_data.data == NULL) {
wbc_status = WBC_ERR_NO_MEMORY;
BAIL_ON_WBC_ERROR(wbc_status);
@@ -520,7 +521,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
done:
winbindd_free_response(&response);
- talloc_free(request.extra_data.data);
+ free(request.extra_data.data);
return wbc_status;
}