diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-21 20:49:40 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-13 23:48:48 +0000 |
commit | b905cf4ab7b09299ecf70c457e3b1d3c6b0d03bf (patch) | |
tree | 577c463cdee7ad4b42b94800f8679a1094af9e09 | |
parent | 59aad28194568efbcb34c6054bcb62fbc0524e5b (diff) | |
download | src-b905cf4ab7b09299ecf70c457e3b1d3c6b0d03bf.tar.gz src-b905cf4ab7b09299ecf70c457e3b1d3c6b0d03bf.zip |
KTLS: Free the MAC session when destroying AES-CBC software sessions.
Reviewed by: hselasky
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35013
(cherry picked from commit 4b337ada34bc795e6d992ee10c879afe45f04cdb)
-rw-r--r-- | sys/opencrypto/ktls_ocf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/opencrypto/ktls_ocf.c b/sys/opencrypto/ktls_ocf.c index 5fafb19a9c4e..56156b6a4988 100644 --- a/sys/opencrypto/ktls_ocf.c +++ b/sys/opencrypto/ktls_ocf.c @@ -668,6 +668,7 @@ ktls_ocf_free(struct ktls_session *tls) os = tls->cipher; crypto_freesession(os->sid); + crypto_freesession(os->mac_sid); mtx_destroy(&os->lock); zfree(os, M_KTLS_OCF); } |