Fix a nil comparison bug
I swear there was a ticket for this but now I can't find it.unstable
parent
cb9cc1a69e
commit
a81868b6b3
|
@ -97,7 +97,7 @@ class Meterpreter < Rex::Post::Meterpreter::Client
|
|||
def shell_read(length=nil, timeout=1)
|
||||
shell_init
|
||||
|
||||
length = nil if length < 0
|
||||
length = nil if length.nil? or length < 0
|
||||
begin
|
||||
rv = nil
|
||||
# Meterpreter doesn't offer a way to timeout on the victim side, so
|
||||
|
|
Loading…
Reference in New Issue