compress_meth should be unsigned
authorDr. Stephen Henson <steve@openssl.org>
Tue, 5 Jan 2010 16:46:39 +0000 (16:46 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 5 Jan 2010 16:46:39 +0000 (16:46 +0000)
ssl/s3_clnt.c
ssl/ssl.h

index af30d1af14630161ef44023b973e1883a990cbbb..af8fe2ad950000cd0d4db2339f90b9516f171610 100644 (file)
@@ -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);
index e984d202b584e58f53bce96118e8a58de0d591c2..2a6adb2ff6ca7424d396d24733b97ac562f6e58e 100644 (file)
--- 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