cast to unsigned int, not to int to avoid the warning -- all these
authorBodo Möller <bodo@openssl.org>
Wed, 14 Nov 2001 21:18:35 +0000 (21:18 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 14 Nov 2001 21:18:35 +0000 (21:18 +0000)
values really are unsigned

ssl/s2_srvr.c

index dfac680..582420b 100644 (file)
@@ -472,8 +472,8 @@ static int get_client_master_key(SSL *s)
         * random master secret (Bleichenbacher attack) */
        if ((i < 0) ||
                ((!is_export && (i != EVP_CIPHER_key_length(c)))
-               || (is_export && ((i != ek) || ((int)s->s2->tmp.clear+i !=
-                       EVP_CIPHER_key_length(c))))))
+               || (is_export && ((i != ek) || (s->s2->tmp.clear+(unsigned int)i !=
+                       (unsigned int)EVP_CIPHER_key_length(c))))))
                {
                ERR_clear_error();
                if (is_export)