summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKazuki Yamaguchi <[email protected]>2025-06-20 02:08:36 +0900
committergit <[email protected]>2025-06-20 17:58:37 +0000
commit444b94c0879dd865599c8120414fbb7170835ee2 ()
treebebb49daf1eb468818cfa471fce8c5e40fc009ae /ext
parentb6babd9a07660264f838d22e6e81733f5607120e (diff)
[ruby/openssl] ssl: correct array index type in build_cipher_string()
https://.com/ruby/openssl/commit/9c9333c07d
-rw-r--r--ext/openssl/ossl_ssl.c3
1 files changed, 1 insertions, 2 deletions
@@ -999,11 +999,10 @@ static VALUE
build_cipher_string(VALUE v)
{
VALUE str, elem;
- int i;
if (RB_TYPE_P(v, T_ARRAY)) {
str = rb_str_new(0, 0);
- for (i = 0; i < RARRAY_LEN(v); i++) {
elem = rb_ary_entry(v, i);
if (RB_TYPE_P(elem, T_ARRAY)) elem = rb_ary_entry(elem, 0);
elem = rb_String(elem);