1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-27 04:46:26 +01:00

fix order of user_error() and bitmap reset

This commit is contained in:
Sebastiaan Andeweg 2018-11-09 16:36:50 +01:00 committed by Andreas Fischer
parent 20c35d9c75
commit 396b9f1a0a

View File

@ -4039,8 +4039,8 @@ class Net_SSH2
function _send_binary_packet($data, $logged = null)
{
if (!is_resource($this->fsock) || feof($this->fsock)) {
user_error('Connection closed prematurely');
$this->bitmap = 0;
user_error('Connection closed prematurely');
return false;
}