diff options
author | Aurelien Aptel <aaptel@suse.com> | 2018-06-06 16:42:51 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-06 16:50:31 -0500 |
commit | 83210ba6f816823f1762fbe63bd4985d6274d205 (patch) | |
tree | 98eeaee7a7236646b21944d79f0f3a10f6d7fff2 /fs/cifs | |
parent | d5f07fb3ef12dee04d457d0fb2dee37e9b3276a1 (diff) | |
download | op-kernel-dev-83210ba6f816823f1762fbe63bd4985d6274d205.zip op-kernel-dev-83210ba6f816823f1762fbe63bd4985d6274d205.tar.gz |
CIFS: fix encryption in SMB3.1.1
The smb2 hdr is now in iov 1
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/smb2ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index a42a1a7..aec03d5 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -2230,7 +2230,7 @@ static int crypt_message(struct TCP_Server_Info *server, struct smb_rqst *rqst, int enc) { struct smb2_transform_hdr *tr_hdr = - (struct smb2_transform_hdr *)rqst->rq_iov[0].iov_base; + (struct smb2_transform_hdr *)rqst->rq_iov[1].iov_base; unsigned int assoc_data_len = sizeof(struct smb2_transform_hdr) - 20; int rc = 0; struct scatterlist *sg; |