From 71007862fcc44b4f5b5fed9e4110b46938e67d29 Mon Sep 17 00:00:00 2001 From: Kelly Mahan Date: Thu, 30 Apr 2015 14:02:16 -0500 Subject: [PATCH] was this the original intent? --- lib/excon/socket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/excon/socket.rb b/lib/excon/socket.rb index 13d90c42..32eb3667 100644 --- a/lib/excon/socket.rb +++ b/lib/excon/socket.rb @@ -241,7 +241,7 @@ def write_nonblock(data) # I wish that this API accepted a start position, then we wouldn't # have to slice data when there is a short write. written = @socket.write_nonblock(data) - rescue Errno::EFAULT + rescue Errno::EFAULT => error if OpenSSL.const_defined?(:OPENSSL_LIBRARY_VERSION) && OpenSSL::OPENSSL_LIBRARY_VERSION.split(' ')[1] == '1.0.2' msg = "The version of OpenSSL this ruby is built against (1.0.2) has a vulnerability which causes a fault. For more, see https://github.com/excon/excon/issues/467"