summaryrefslogtreecommitdiff
path: root/source3/utils/ntlm_auth_diagnostics.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/ntlm_auth_diagnostics.c')
-rw-r--r--source3/utils/ntlm_auth_diagnostics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/ntlm_auth_diagnostics.c b/source3/utils/ntlm_auth_diagnostics.c
index 17801b2a80..cea4b084f7 100644
--- a/source3/utils/ntlm_auth_diagnostics.c
+++ b/source3/utils/ntlm_auth_diagnostics.c
@@ -458,7 +458,7 @@ static bool test_plaintext(enum ntlm_break break_which)
flags |= WBFLAG_PAM_LMKEY;
flags |= WBFLAG_PAM_USER_SESSION_KEY;
- if (!push_ucs2_talloc(NULL, &nt_response_ucs2, opt_password,
+ if (!push_ucs2_talloc(talloc_tos(), &nt_response_ucs2, opt_password,
&converted_size))
{
DEBUG(0, ("push_ucs2_talloc failed!\n"));
@@ -468,12 +468,12 @@ static bool test_plaintext(enum ntlm_break break_which)
nt_response.data = (unsigned char *)nt_response_ucs2;
nt_response.length = strlen_w(nt_response_ucs2)*sizeof(smb_ucs2_t);
- if ((password = strupper_talloc(NULL, opt_password)) == NULL) {
+ if ((password = strupper_talloc(talloc_tos(), opt_password)) == NULL) {
DEBUG(0, ("strupper_talloc() failed!\n"));
exit(1);
}
- if (!convert_string_talloc(NULL, CH_UNIX,
+ if (!convert_string_talloc(talloc_tos(), CH_UNIX,
CH_DOS, password,
strlen(password)+1,
&lm_response.data,