Fix incorrect use of sock.get() that could lead to indefinite hang

This commit is contained in:
HD Moore
2014-06-28 15:22:16 -05:00
parent a9cd9c584a
commit 6d0d8a911d
@@ -59,7 +59,7 @@ class Metasploit3 < Msf::Auxiliary
# on the response codes. We need to do this between every
# port scan attempt unfortunately.
while true
r = self.sock.get(0.25)
r = sock.get_once(-1, 0.25)
break if not r or r.empty?
end