提交 8e1634ec 编写于 作者: T Tatsuhiro Tsujikawa 提交者: Matt Caswell

Don't treat PACKET_remaining() as boolean

Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3244)
上级 bf5c84f5
...@@ -1714,7 +1714,7 @@ MSG_PROCESS_RETURN tls_process_server_certificate(SSL *s, PACKET *pkt) ...@@ -1714,7 +1714,7 @@ MSG_PROCESS_RETURN tls_process_server_certificate(SSL *s, PACKET *pkt)
&al, NULL, chainidx == 0) &al, NULL, chainidx == 0)
|| !tls_parse_all_extensions(s, SSL_EXT_TLS1_3_CERTIFICATE, || !tls_parse_all_extensions(s, SSL_EXT_TLS1_3_CERTIFICATE,
rawexts, x, chainidx, &al, rawexts, x, chainidx, &al,
!PACKET_remaining(pkt))) { PACKET_remaining(pkt) == 0)) {
OPENSSL_free(rawexts); OPENSSL_free(rawexts);
goto f_err; goto f_err;
} }
......
...@@ -3220,7 +3220,7 @@ MSG_PROCESS_RETURN tls_process_client_certificate(SSL *s, PACKET *pkt) ...@@ -3220,7 +3220,7 @@ MSG_PROCESS_RETURN tls_process_client_certificate(SSL *s, PACKET *pkt)
&al, NULL, chainidx == 0) &al, NULL, chainidx == 0)
|| !tls_parse_all_extensions(s, SSL_EXT_TLS1_3_CERTIFICATE, || !tls_parse_all_extensions(s, SSL_EXT_TLS1_3_CERTIFICATE,
rawexts, x, chainidx, &al, rawexts, x, chainidx, &al,
!PACKET_remaining(&spkt))) { PACKET_remaining(&spkt) == 0)) {
OPENSSL_free(rawexts); OPENSSL_free(rawexts);
goto f_err; goto f_err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册