diff --git a/libcli/auth/ntlm_check.c b/libcli/auth/ntlm_check.c index 3927dfa7836..a2388706bcf 100644 --- a/libcli/auth/ntlm_check.c +++ b/libcli/auth/ntlm_check.c @@ -383,7 +383,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, &converted_size))) { + &unix_pw, &converted_size))) { if (E_deshash(unix_pw, client_lm.hash)) { lm_ok = true; } else { diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index d525b373e86..73c696c95c1 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -968,7 +968,7 @@ bool decode_pw_buffer(TALLOC_CTX *ctx, CH_UNIX, new_password.data, new_password.length, - (void *)pp_new_pwrd, + pp_new_pwrd, new_pw_len); data_blob_free(&new_password); if (!ok) { @@ -1062,7 +1062,7 @@ bool decode_pwd_string_from_buffer514(TALLOC_CTX *mem_ctx, CH_UNIX, new_password.data, new_password.length, - (void *)&decoded_password->data, + &decoded_password->data, &decoded_password->length); data_blob_free(&new_password); if (!ok) {