- if a binary packet can't be decrypt don't bother to process it further

git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@180 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
Jim Wigginton 2011-10-06 12:12:56 +00:00
parent 58b4b8d681
commit 034ec72ade

View File

@ -1881,6 +1881,10 @@ class Net_SSH2 {
if ($this->decrypt !== false) {
$raw = $this->decrypt->decrypt($raw);
}
if ($raw === false) {
user_error('Unable to decrypt content', E_USER_NOTICE);
return false;
}
extract(unpack('Npacket_length/Cpadding_length', $this->_string_shift($raw, 5)));