Skip to content

Commit cedf237

Browse files
committed
tls: free ciphers when tls context is cleared
1 parent 2a2771a commit cedf237

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)