summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-12-03 02:57:18 +0900
committergit <svn-admin@ruby-lang.org>2026-01-23 16:41:17 +0000
commit0379aab6c0f345908e03868ced03936c07b7651a (patch)
tree298c7224355318e0b8627ae76c2ac9ac1fc05919 /spec/ruby/core/integer
parent05b85fc1abdefd81a5561ac7d7aed433b7a01400 (diff)
[ruby/openssl] ssl: fix errno display in exception messages
The errno reported in an OpenSSL::SSL::SSLError raised by SSLSocket#accept and #connect sometimes does not match what SSL_accept() or SSL_connect() actually encountered. Depending on the evaluation order of arguments passed to ossl_raise(), errno may be overwritten by peeraddr_ip_str(). While we could just fix peeraddr_ip_str(), we should avoid passing around errno since it is error-prone. Replace rb_sys_fail() and rb_io_{maybe_,}wait_{read,writ}able() with equivalents that do not read errno. https://github.com/ruby/openssl/commit/bfc7df860f
Diffstat (limited to 'spec/ruby/core/integer')
0 files changed, 0 insertions, 0 deletions