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:
parent
b8e462c8e3
commit
9fc0d25b09
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue