timeout in _get_channel_packet during _init_sftp_connection should be a failure

This commit is contained in:
Nick Lassonde 2021-07-26 11:35:56 -07:00 committed by terrafrost
parent a02526e5e0
commit dab514faff
1 changed files with 4 additions and 0 deletions

View File

@ -526,6 +526,8 @@ class Net_SFTP extends Net_SSH2
$response = $this->_get_channel_packet(NET_SFTP_CHANNEL, true);
if ($response === false) {
return false;
} else if ($response === true && $this->isTimeout()) {
return false;
}
$packet = pack(
@ -572,6 +574,8 @@ class Net_SFTP extends Net_SSH2
if ($response === false) {
return false;
}
} else if ($response === true && $this->isTimeout()) {
return false;
}
$this->channel_status[NET_SFTP_CHANNEL] = NET_SSH2_MSG_CHANNEL_DATA;