1
1

Fix return code from packet_wait in channel_request

Signed-off-by: Andreas Schneider <mail@cynapses.org>
Этот коммит содержится в:
Vic Lee 2009-08-16 18:28:05 +08:00 коммит произвёл Andreas Schneider
родитель 756d441f8c
Коммит 2c4bbe51dd

Просмотреть файл

@ -1057,7 +1057,7 @@ static int channel_request(ssh_channel channel, const char *request,
}
rc = packet_wait(session, SSH2_MSG_CHANNEL_SUCCESS, 1);
if (rc) {
if (rc == SSH_ERROR) {
if (session->in_packet.type == SSH2_MSG_CHANNEL_FAILURE) {
ssh_log(session, SSH_LOG_PACKET,
"%s channel request failed", request);