提交 796a627e 编写于 作者: M Matt Caswell

Ensure the WPACKET gets cleaned up in the event of an error

Otherwise a mem leak can occur.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 871bc59b
......@@ -875,6 +875,7 @@ int tls_construct_client_hello(SSL *s)
return 1;
err:
ossl_statem_set_error(s);
WPACKET_cleanup(&pkt);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册