summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2006-03-15 09:57:16 +0000
committerRichard Levitte <levitte@openssl.org>2006-03-15 09:57:16 +0000
commita4ff392503fbc9ccd50fb425a69e50a64058314c (patch)
tree5c5890daef4b25228bdae2c59b9baca86fe4e371
parent40f51f506cf253e7e9ca6779078ac4eab541ce9a (diff)
tlsext_ecpointformatlist_length is unsigned, so check if it's less
than zero will only result in pissing of some compilers...
-rw-r--r--ssl/t1_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index cdcc0598c2..a46e573ff6 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -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;