From 9a7cfafc8df7f16c81b1cff5b0ee6ae9d868be19 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 14 May 2021 12:55:06 -0500 Subject: [PATCH] SSH2: timeout would occasionally infinitely loop this was changed from !$this->curTimeout to $this->curTimeout <= 0 in commit 96c4c3bc58 --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 7ad82ace..595b7c70 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3351,7 +3351,7 @@ class Net_SSH2 $read = array($this->fsock); $write = $except = null; - if ($this->curTimeout <= 0) { + if (!$this->curTimeout) { if ($this->keepAlive <= 0) { @stream_select($read, $write, $except, null); } else {