[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix for ssh_channel_request_pty_size for SSH1
[Thread Prev] | [Thread Next]
- Subject: Fix for ssh_channel_request_pty_size for SSH1
- From: Dmitriy Kuznetsov <dk@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 7 Sep 2012 11:38:09 +0400
- To: libssh@xxxxxxxxxx
Look at the code in channels.c (master branch): --- int ssh_channel_request_pty_size(ssh_channel channel, const char *terminal, int col, int row) { ssh_session session = channel->session; ssh_string term = NULL; ssh_buffer buffer = NULL; int rc = SSH_ERROR; // <-- Init rc if(channel == NULL) { return SSH_ERROR; } if(terminal == NULL) { ssh_set_error_invalid(channel->session); return rc; } enter_function(); #ifdef WITH_SSH1 if (channel->version==1) { channel_request_pty_size1(channel,terminal, col, row); leave_function(); return rc; // <-- return invalid rc, previous line MUST be "rc = channel_request_pty_size1(channel,terminal, col, row);" } #endif --- patch attached Thank you.
Attachment:
channels.c.patch
Description: Binary data
Archive administrator: postmaster@lists.cynapses.org