]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add test for SSL_SESSION leak on ticket abort in tls_parse_ctos_psk()
authorWeidong Wang <kenazcharisma@gmail.com>
Wed, 18 Mar 2026 11:00:06 +0000 (06:00 -0500)
committerNeil Horman <nhorman@openssl.org>
Wed, 20 May 2026 14:37:56 +0000 (10:37 -0400)
commite6f5ed33f143aa4aab38172f3dcc160e2ef71c52
tree78e22bda6016df032fa97bc72ef5de5220099b5c
parentdf29f024251d44d26632c1c51ef544ce46cb037e
Add test for SSL_SESSION leak on ticket abort in tls_parse_ctos_psk()

Add test_ticket_abort_session_leak() to verify that returning
SSL_TICKET_RETURN_ABORT from the decrypt ticket callback during TLS 1.3
resumption does not leak the SSL_SESSION allocated by tls_decrypt_ticket().
This exercises the error path fixed in commit 96f424c439.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Wed May 20 14:38:04 2026
(Merged from https://github.com/openssl/openssl/pull/30464)
test/sslapitest.c