Skip to content

@dbussink /gist:5f99a7daa7dd172761f0 secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.