From: Bodo Möller Date: Wed, 14 Nov 2001 21:18:35 +0000 (+0000) Subject: cast to unsigned int, not to int to avoid the warning -- all these X-Git-Tag: OpenSSL_0_9_6c~26^2~39 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=c23d16ac1987f453ade45d3b9927e62c02b17ce0 cast to unsigned int, not to int to avoid the warning -- all these values really are unsigned --- diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index dfac68095b..582420bcff 100644 --- a/ssl/s2_srvr.c +++ b/ssl/s2_srvr.c @@ -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)