SSH2: fix E_NOTICE in keyboard interactive code

Thanks ravage84!
This commit is contained in:
terrafrost 2013-04-24 01:07:32 -05:00
parent 141da70f1a
commit d6ee41d957

View File

@ -1721,7 +1721,7 @@ class Net_SSH2 {
// see http://tools.ietf.org/html/rfc4256#section-3.2 // see http://tools.ietf.org/html/rfc4256#section-3.2
if (strlen($this->last_interactive_response)) { if (strlen($this->last_interactive_response)) {
$this->last_interactive_response = ''; $this->last_interactive_response = '';
} else { } else if (defined('NET_SSH2_LOGGING')) {
$this->message_number_log[count($this->message_number_log) - 1] = str_replace( $this->message_number_log[count($this->message_number_log) - 1] = str_replace(
'UNKNOWN', 'UNKNOWN',
'NET_SSH2_MSG_USERAUTH_INFO_REQUEST', 'NET_SSH2_MSG_USERAUTH_INFO_REQUEST',