mirror of
https://github.com/openssl/openssl.git
synced 2024-12-25 18:03:35 +08:00
Gracefully free a NULL HANDSHAKE_RESULT
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
d61f00780a
commit
2f35e6a3eb
@ -25,6 +25,8 @@ HANDSHAKE_RESULT *HANDSHAKE_RESULT_new()
|
||||
|
||||
void HANDSHAKE_RESULT_free(HANDSHAKE_RESULT *result)
|
||||
{
|
||||
if (result == NULL)
|
||||
return;
|
||||
OPENSSL_free(result->client_npn_negotiated);
|
||||
OPENSSL_free(result->server_npn_negotiated);
|
||||
OPENSSL_free(result->client_alpn_negotiated);
|
||||
|
Loading…
Reference in New Issue
Block a user