aboutsummaryrefslogtreecommitdiff
path: root/fs/freevxfs
diff options
context:
space:
mode:
authorJakub Kicinski2021-11-24 15:25:52 -0800
committerJakub Kicinski2021-11-25 19:28:16 -0800
commit520493f66f6822551aef2879cd40207074fe6980 (patch)
treecd8fa7b3139402e3da17b156712a4304f15d3667 /fs/freevxfs
parentef0fc0b3cc2b8df7f29656a190a13ceb644b0c00 (diff)
tls: splice_read: fix record type check
We don't support splicing control records. TLS 1.3 changes moved the record type check into the decrypt if(). The skb may already be decrypted and still be an alert. Note that decrypt_skb_update() is idempotent and updates ctx->decrypted so the if() is pointless. Reorder the check for decryption errors with the content type check while touching them. This part is not really a bug, because if decryption failed in TLS 1.3 content type will be DATA, and for TLS 1.2 it will be correct. Nevertheless its strange to touch output before checking if the function has failed. Fixes: fedf201e1296 ("net: tls: Refactor control message handling on recv") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'fs/freevxfs')
0 files changed, 0 insertions, 0 deletions