From: Dr. Stephen Henson Date: Tue, 5 Jan 2010 16:46:39 +0000 (+0000) Subject: compress_meth should be unsigned X-Git-Tag: OpenSSL_1_0_0-beta5~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f67a3a9853eb3ad453e136e9c688ad512c8ac09;p=oweals%2Fopenssl.git compress_meth should be unsigned --- 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