1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

channels: Fix return value of ssh_channel_request_pty_size with SSHv1.

Thanks to Dmitriy Kuznetsov <dk@yandex.ru>.
This commit is contained in:
Andreas Schneider
2012-09-07 12:21:28 +02:00
parent 320951f42f
commit 3739bd99c5

View File

@@ -1616,7 +1616,7 @@ int ssh_channel_request_pty_size(ssh_channel channel, const char *terminal,
enter_function(); enter_function();
#ifdef WITH_SSH1 #ifdef WITH_SSH1
if (channel->version==1) { if (channel->version==1) {
channel_request_pty_size1(channel,terminal, col, row); rc = channel_request_pty_size1(channel,terminal, col, row);
leave_function(); leave_function();
return rc; return rc;
} }