mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Encryption works better when you add the client decrypt code :-).
Jeremy.
This commit is contained in:
parent
d78045601a
commit
d67b263406
@ -86,6 +86,17 @@ static ssize_t client_receive_smb(struct cli_state *cli, size_t maxlen)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (cli_encryption_on(cli)) {
|
||||
NTSTATUS status = cli_decrypt_message(cli);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("SMB decryption failed on incoming packet! Error %s\n",
|
||||
nt_errstr(status)));
|
||||
cli->smb_rw_error = SMB_READ_BAD_DECRYPT;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
show_msg(cli->inbuf);
|
||||
return len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user