Skip to content

Commit 83210ba

Browse files
aaptelSteve French
authored andcommitted
CIFS: fix encryption in SMB3.1.1
The smb2 hdr is now in iov 1 Signed-off-by: Aurelien Aptel <[email protected]> Reviewed-by: Paulo Alcantara <[email protected]> Acked-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d5f07fb commit 83210ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smb2ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ static int
22302230
crypt_message(struct TCP_Server_Info *server, struct smb_rqst *rqst, int enc)
22312231
{
22322232
struct smb2_transform_hdr *tr_hdr =
2233-
(struct smb2_transform_hdr *)rqst->rq_iov[0].iov_base;
2233+
(struct smb2_transform_hdr *)rqst->rq_iov[1].iov_base;
22342234
unsigned int assoc_data_len = sizeof(struct smb2_transform_hdr) - 20;
22352235
int rc = 0;
22362236
struct scatterlist *sg;

0 commit comments

Comments
 (0)