From 1f67a3a9853eb3ad453e136e9c688ad512c8ac09 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 5 Jan 2010 16:46:39 +0000 Subject: [PATCH] compress_meth should be unsigned --- ssl/s3_clnt.c | 2 +- ssl/ssl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index af30d1af14..af8fe2ad95 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -902,7 +902,7 @@ int ssl3_get_server_hello(SSL *s) } #else j= *(p++); - if (s->hit && j != (int)s->session->compress_meth) + if (s->hit && j != s->session->compress_meth) { al=SSL_AD_ILLEGAL_PARAMETER; SSLerr(SSL_F_SSL3_GET_SERVER_HELLO,SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED); diff --git a/ssl/ssl.h b/ssl/ssl.h index e984d202b5..2a6adb2ff6 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -485,7 +485,7 @@ typedef struct ssl_session_st long timeout; long time; - int compress_meth; /* Need to lookup the method */ + unsigned int compress_meth; /* Need to lookup the method */ const SSL_CIPHER *cipher; unsigned long cipher_id; /* when ASN.1 loaded, this -- 2.25.1