Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:5f99a7daa7dd172761f0
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git i/lib/18/socket.rb w/lib/18/socket.rb
index 52a01fe..c981d9f 100644
--- i/lib/18/socket.rb
+++ w/lib/18/socket.rb
@@ -682,6 +682,8 @@ class Socket < BasicSocket
else
raise SocketError, "unknown socket type #{type}"
end
+ elsif !type.kind_of? Integer
+ raise Errno::EPROTONOSUPPORT, type.inspect
end
FFI::MemoryPointer.new :int, 2 do |mp|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.