Free functions are expected to be tolerant of a NULL pointer being passed.
Fixes the problem in
https://github.com/openssl/openssl/pull/21668#issuecomment-
1782718328
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22536)
void ossl_quic_tls_free(QUIC_TLS *qtls)
{
+ if (qtls == NULL)
+ return;
OSSL_ERR_STATE_free(qtls->error_state);
OPENSSL_free(qtls);
}