cifsd: fix wrong return value in ksmbd_crypt_message()
Change error return instead of returning always success return. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
03f1c3d388
commit
27aa646db0
@ -1253,7 +1253,7 @@ int ksmbd_crypt_message(struct ksmbd_conn *conn, struct kvec *iov,
|
||||
key);
|
||||
if (rc) {
|
||||
ksmbd_err("Could not get %scryption key\n", enc ? "en" : "de");
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM ||
|
||||
|
Loading…
Reference in New Issue
Block a user