mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
Ensure the WPACKET gets cleaned up in the event of an error
Otherwise a mem leak can occur. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
871bc59bc1
commit
796a627e0a
@ -875,6 +875,7 @@ int tls_construct_client_hello(SSL *s)
|
||||
return 1;
|
||||
err:
|
||||
ossl_statem_set_error(s);
|
||||
WPACKET_cleanup(&pkt);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user