secret
Created

  • Download Gist
gistfile1.txt
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|

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.