Fix a nil comparison bug

I swear there was a ticket for this but now I can't find it.
unstable
James Lee 2012-02-23 16:29:37 -07:00
parent cb9cc1a69e
commit a81868b6b3
1 changed files with 1 additions and 1 deletions

View File

@ -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