mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
ksmbd: fix wrong compression context size
Use smb2_compression_ctx instead of smb2_encryption_neg_context. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
a9c241d01d
commit
e4b60e92d4
1 changed files with 1 additions and 1 deletions
|
@ -924,7 +924,7 @@ static int decode_compress_ctxt(struct ksmbd_conn *conn,
|
|||
* Return compression context size in request.
|
||||
* So need to plus extra number of CompressionAlgorithms size.
|
||||
*/
|
||||
return sizeof(struct smb2_encryption_neg_context) +
|
||||
return sizeof(struct smb2_compression_ctx) +
|
||||
((algo_cnt - 1) * 2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue