From 0c5214e2eb6249914230f092fe35dfa49da24c34 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Mar 2011 11:16:26 -0700 Subject: Ensure convert_string_XXX is always called with a valid converted_size pointer. Preparation for cleaning up this API. Autobuild-User: Jeremy Allison Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104 --- libcli/auth/ntlm_check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcli/auth/ntlm_check.c') diff --git a/libcli/auth/ntlm_check.c b/libcli/auth/ntlm_check.c index 9cbd49595f..9520d32a1e 100644 --- a/libcli/auth/ntlm_check.c +++ b/libcli/auth/ntlm_check.c @@ -314,6 +314,7 @@ NTSTATUS ntlm_password_check(TALLOC_CTX *mem_ctx, struct samr_Password client_lm; char *unix_pw = NULL; bool lm_ok; + size_t converted_size = 0; DEBUG(4,("ntlm_password_check: checking plaintext passwords for user %s\n", username)); @@ -322,7 +323,7 @@ NTSTATUS ntlm_password_check(TALLOC_CTX *mem_ctx, if (lm_response->length && (convert_string_talloc(mem_ctx, CH_DOS, CH_UNIX, lm_response->data, lm_response->length, - (void *)&unix_pw, NULL))) { + (void *)&unix_pw, &converted_size))) { if (E_deshash(unix_pw, client_lm.hash)) { lm_ok = true; } else { -- cgit