ruby 2.2 compatibility

https://bugs.ruby-lang.org/issues/10314
bug/bundler_fix
dmooray 2015-01-07 11:41:34 +02:00
parent fee49b0b85
commit 478505c17a
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ module Exploit::Remote::SunRPC
rpcobj.pport = arr[5]
end
def sunrpc_call(proc, buf, timeout = timeout)
def sunrpc_call(proc, buf, timeout = timeout())
ret = rpcobj.call(proc, buf, timeout)
raise ::Rex::Proto::SunRPC::RPCError, "#{rhost}:#{rport} - SunRPC - No response to SunRPC call for procedure: #{proc}" unless ret