diff options
author | Richard Levitte <levitte@openssl.org> | 2006-05-28 19:44:27 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2006-05-28 19:44:27 +0000 |
commit | 4d4e08ec1ce1558ca25f75b05a919ac6dc8f1338 (patch) | |
tree | 3c817fa7ad891e4e971d469d10ddaf48b0db595c /ssl/s3_lib.c | |
parent | 25074d6c2238939c340647f4b8f85763af403056 (diff) |
Use a new signed int ii instead of j (which is unsigned) to handle the
return value from sk_SSL_CIPHER_find().
Diffstat (limited to 'ssl/s3_lib.c')
-rw-r--r-- | ssl/s3_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 7a87da6105..bfb70515b0 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -2043,7 +2043,7 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, { SSL_CIPHER *c,*ret=NULL; STACK_OF(SSL_CIPHER) *prio, *allow; - int i,ok; + int i,ii,ok; unsigned int j; #ifndef OPENSSL_NO_TLSEXT #ifndef OPENSSL_NO_EC @@ -2291,10 +2291,10 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, #endif /* OPENSSL_NO_TLSEXT */ if (!ok) continue; - j=sk_SSL_CIPHER_find(allow,c); - if (j >= 0) + ii=sk_SSL_CIPHER_find(allow,c); + if (ii >= 0) { - ret=sk_SSL_CIPHER_value(allow,j); + ret=sk_SSL_CIPHER_value(allow,ii); break; } } |