提交 a4ff3925 编写于 作者: R Richard Levitte

tlsext_ecpointformatlist_length is unsigned, so check if it's less

than zero will only result in pissing of some compilers...
上级 40f51f50
......@@ -632,7 +632,7 @@ int ssl_check_serverhello_tlsext(SSL *s)
size_t i;
unsigned char *list;
int found_uncompressed = 0;
if ((s->session->tlsext_ecpointformatlist == NULL) || (s->session->tlsext_ecpointformatlist_length <= 0))
if ((s->session->tlsext_ecpointformatlist == NULL) || (s->session->tlsext_ecpointformatlist_length == 0))
{
SSLerr(SSL_F_TLS1_CHECK_SERVERHELLO_TLSEXT,SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST);
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册