git: 4b337ada34bc - main - KTLS: Free the MAC session when destroying AES-CBC software sessions.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 20:50:26 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4b337ada34bc795e6d992ee10c879afe45f04cdb
commit 4b337ada34bc795e6d992ee10c879afe45f04cdb
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 20:49:40 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 20:49:40 +0000
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
---
sys/opencrypto/ktls_ocf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/opencrypto/ktls_ocf.c b/sys/opencrypto/ktls_ocf.c
index a2bb94dc717a..34e76556fccc 100644
--- a/sys/opencrypto/ktls_ocf.c
+++ b/sys/opencrypto/ktls_ocf.c
@@ -669,6 +669,7 @@ ktls_ocf_free(struct ktls_session *tls)
os = tls->ocf_session;
crypto_freesession(os->sid);
+ crypto_freesession(os->mac_sid);
mtx_destroy(&os->lock);
zfree(os, M_KTLS_OCF);
}