提交 fbaf2857 编写于 作者: R Rich Salz

If-guard to avoid null ptr deref in statem_srvr.c

Reviewed-by: NMatt Caswell <matt@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
CLA: trivial
(Merged from https://github.com/openssl/openssl/pull/3419)
上级 a020f54c
...@@ -1444,7 +1444,8 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt) ...@@ -1444,7 +1444,8 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
err: err:
ossl_statem_set_error(s); ossl_statem_set_error(s);
OPENSSL_free(clienthello->pre_proc_exts); if (clienthello != NULL)
OPENSSL_free(clienthello->pre_proc_exts);
OPENSSL_free(clienthello); OPENSSL_free(clienthello);
return MSG_PROCESS_ERROR; return MSG_PROCESS_ERROR;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册