mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
libcli/auth: Remove unnecessary casts
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d608dc175e
commit
593a7fb638
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user