diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-06-20 02:08:36 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-06-20 17:58:37 +0000 |
| commit | 444b94c0879dd865599c8120414fbb7170835ee2 (patch) | |
| tree | bebb49daf1eb468818cfa471fce8c5e40fc009ae /ext/openssl | |
| parent | b6babd9a07660264f838d22e6e81733f5607120e (diff) | |
[ruby/openssl] ssl: correct array index type in build_cipher_string()
https://github.com/ruby/openssl/commit/9c9333c07d
Diffstat (limited to 'ext/openssl')
| -rw-r--r-- | ext/openssl/ossl_ssl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index d18eb39d3d..c2f4b4f063 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -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++) { + for (long 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); |
