From 4f53331c98dd8b1c9b6adb1890b2de15d5c6f2e2 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 23 Sep 2022 23:03:11 -0500 Subject: [PATCH] SSH2: rm if condition that can't ever be true in 3.0+ --- 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 25e7c912..a056c88e 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2782,7 +2782,7 @@ class SSH2 $this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA; - if ($callback === false || $this->in_request_pty_exec) { + if ($this->in_request_pty_exec) { return true; }