mirror of
https://github.com/suyu-emu/horinux.git
synced 2026-09-21 14:15:21 -07:00
CIFS: Decrypt and process small encrypted packets
Allow to decrypt transformed packets, find a corresponding mid and process as usual further. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
d70b9104b1
commit
4326ed2f6a
@@ -564,7 +564,7 @@ smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
|
||||
|
||||
dump_smb(mid->resp_buf, min_t(u32, 80, len));
|
||||
/* convert the length into a more usable form */
|
||||
if (len > 24 && server->sign) {
|
||||
if (len > 24 && server->sign && !mid->decrypted) {
|
||||
int rc;
|
||||
|
||||
rc = smb2_verify_signature(&rqst, server);
|
||||
|
||||
Reference in New Issue
Block a user