cast to unsigned int, not to int to avoid the warning -- all these
values really are unsigned
This commit is contained in:
parent
1b28ed575b
commit
c23d16ac19
@ -472,8 +472,8 @@ static int get_client_master_key(SSL *s)
|
|||||||
* random master secret (Bleichenbacher attack) */
|
* random master secret (Bleichenbacher attack) */
|
||||||
if ((i < 0) ||
|
if ((i < 0) ||
|
||||||
((!is_export && (i != EVP_CIPHER_key_length(c)))
|
((!is_export && (i != EVP_CIPHER_key_length(c)))
|
||||||
|| (is_export && ((i != ek) || ((int)s->s2->tmp.clear+i !=
|
|| (is_export && ((i != ek) || (s->s2->tmp.clear+(unsigned int)i !=
|
||||||
EVP_CIPHER_key_length(c))))))
|
(unsigned int)EVP_CIPHER_key_length(c))))))
|
||||||
{
|
{
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
if (is_export)
|
if (is_export)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user