Skip to content

Commit 9c9333c

Browse files
committed
ssl: correct array index type in build_cipher_string()
1 parent 43d1b53 commit 9c9333c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,11 +999,10 @@ static VALUE
999999
build_cipher_string(VALUE v)
10001000
{
10011001
VALUE str, elem;
1002-
int i;
10031002

10041003
if (RB_TYPE_P(v, T_ARRAY)) {
10051004
str = rb_str_new(0, 0);
1006-
for (i = 0; i < RARRAY_LEN(v); i++) {
1005+
for (long i = 0; i < RARRAY_LEN(v); i++) {
10071006
elem = rb_ary_entry(v, i);
10081007
if (RB_TYPE_P(elem, T_ARRAY)) elem = rb_ary_entry(elem, 0);
10091008
elem = rb_String(elem);

0 commit comments

Comments
 (0)