Plug memory leak for AES_*_NIST_GMAC algorithms.
swcr_newsession() allocates sw_ictx for these algorithms, thus we need to free() it in swcr_freesession(). PR: 233907 MFC after: 1 week
This commit is contained in:
parent
70f308d0f5
commit
6062df0326
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342030
@ -1091,6 +1091,9 @@ swcr_freesession(device_t dev, crypto_session_t cses)
|
|||||||
case CRYPTO_SHA2_256:
|
case CRYPTO_SHA2_256:
|
||||||
case CRYPTO_SHA2_384:
|
case CRYPTO_SHA2_384:
|
||||||
case CRYPTO_SHA2_512:
|
case CRYPTO_SHA2_512:
|
||||||
|
case CRYPTO_AES_128_NIST_GMAC:
|
||||||
|
case CRYPTO_AES_192_NIST_GMAC:
|
||||||
|
case CRYPTO_AES_256_NIST_GMAC:
|
||||||
axf = swd->sw_axf;
|
axf = swd->sw_axf;
|
||||||
|
|
||||||
if (swd->sw_ictx) {
|
if (swd->sw_ictx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user