Skip to content

Commit 2518c54

Browse files
authored
Merge pull request #1198 from tempesta-tech/ri-tls-free-ciphers
tls: free ciphers when tls context is cleared
2 parents 1e49ec4 + cedf237 commit 2518c54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tls/ttls.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,9 @@ ttls_ctx_clear(TlsCtx *tls)
23932393
ttls_free(tls->hostname);
23942394
}
23952395

2396+
ttls_cipher_free(&tls->xfrm.cipher_ctx_enc);
2397+
ttls_cipher_free(&tls->xfrm.cipher_ctx_dec);
2398+
23962399
bzero_fast(tls, sizeof(TlsCtx));
23972400
}
23982401
EXPORT_SYMBOL(ttls_ctx_clear);

0 commit comments

Comments
 (0)