Skip to content

Commit 72eb8e6

Browse files
author
Tod Beardsley
committed
Land rapid7#4475, inverted timeout fix
2 parents 1dd9d60 + bbb41c3 commit 72eb8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/packet_dispatcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def monitor_socket
356356
begin
357357
if ! dispatch_inbound_packet(pkt)
358358
# Only requeue packets newer than the timeout
359-
if (::Time.now.to_i - pkt.created_at.to_i < PacketTimeout)
359+
if (::Time.now.to_i - pkt.created_at.to_i > PacketTimeout)
360360
incomplete << pkt
361361
end
362362
end

0 commit comments

Comments
 (0)