Merge pull request #1314 from bantu/pr-1313-on-1.0

fix order of user_error() and bitmap reset

* bantu/pr-1313-on-1.0:
  fix order of user_error() and bitmap reset
This commit is contained in:
Andreas Fischer 2018-11-11 16:23:20 +01:00
commit 3813b18236

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;
}