mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/lib/socket.rb: Don't test $! in "ensure" clause because
it may be set before the body. Reported by ko1 and mrkn. [ruby-core:59088] [Bug #9247] * lib/cgi/core.rb: Ditto. * lib/drb/ssl.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
42ae24a6e8
commit
4fd53e476e
5 changed files with 136 additions and 34 deletions
|
@ -328,8 +328,9 @@ module DRb
|
|||
end
|
||||
begin
|
||||
ssl = @config.accept(soc)
|
||||
ensure
|
||||
soc.close if $!
|
||||
rescue Exception
|
||||
soc.close
|
||||
raise
|
||||
end
|
||||
self.class.new(uri, ssl, @config, true)
|
||||
rescue OpenSSL::SSL::SSLError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue