Use a new signed int ii instead of j (which is unsigned) to handle the
return value from sk_SSL_CIPHER_find().
This commit is contained in:
parent
25074d6c22
commit
4d4e08ec1c
@ -2043,7 +2043,7 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
|
|||||||
{
|
{
|
||||||
SSL_CIPHER *c,*ret=NULL;
|
SSL_CIPHER *c,*ret=NULL;
|
||||||
STACK_OF(SSL_CIPHER) *prio, *allow;
|
STACK_OF(SSL_CIPHER) *prio, *allow;
|
||||||
int i,ok;
|
int i,ii,ok;
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
#ifndef OPENSSL_NO_TLSEXT
|
#ifndef OPENSSL_NO_TLSEXT
|
||||||
#ifndef OPENSSL_NO_EC
|
#ifndef OPENSSL_NO_EC
|
||||||
@ -2291,10 +2291,10 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
|
|||||||
#endif /* OPENSSL_NO_TLSEXT */
|
#endif /* OPENSSL_NO_TLSEXT */
|
||||||
|
|
||||||
if (!ok) continue;
|
if (!ok) continue;
|
||||||
j=sk_SSL_CIPHER_find(allow,c);
|
ii=sk_SSL_CIPHER_find(allow,c);
|
||||||
if (j >= 0)
|
if (ii >= 0)
|
||||||
{
|
{
|
||||||
ret=sk_SSL_CIPHER_value(allow,j);
|
ret=sk_SSL_CIPHER_value(allow,ii);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user