SSL_free() does check for != NULL (thanks Sashan)

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859)
This commit is contained in:
Jean-Frederic Clere 2024-12-10 10:08:11 +01:00 committed by Neil Horman
parent b8e462c8e3
commit 9fc0d25b09

View file

@ -438,12 +438,9 @@ static int quic_server_h3streams(nghttp3_conn *h3conn, struct h3ssl *h3ssl)
return 0;
err:
fflush(stderr);
if (rstream != NULL)
SSL_free(rstream);
if (pstream != NULL)
SSL_free(pstream);
if (cstream != NULL)
SSL_free(cstream);
SSL_free(rstream);
SSL_free(pstream);
SSL_free(cstream);
return -1;
}