1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-13 04:42:23 +03:00

Fix compilation of SSHv1.

Patch by Norbert Kiesel.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@770 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-05-23 08:27:31 +00:00
parent fecbdff179
commit 1ac654ec6c

View File

@@ -534,7 +534,7 @@ static int packet_send1(SSH_SESSION *session) {
"%d bytes after comp + %d padding bytes = %d bytes packet", "%d bytes after comp + %d padding bytes = %d bytes packet",
currentlen, padding, ntohl(finallen)); currentlen, padding, ntohl(finallen));
if (buffer_prepend_data(session->out_buffer,i &padstring, padding) < 0) { if (buffer_prepend_data(session->out_buffer, &padstring, padding) < 0) {
goto error; goto error;
} }
if (buffer_prepend_data(session->out_buffer, &finallen, sizeof(u32)) < 0) { if (buffer_prepend_data(session->out_buffer, &finallen, sizeof(u32)) < 0) {
@@ -607,7 +607,7 @@ void packet_parse(SSH_SESSION *session) {
case SSH_SMSG_STDOUT_DATA: case SSH_SMSG_STDOUT_DATA:
case SSH_SMSG_STDERR_DATA: case SSH_SMSG_STDERR_DATA:
case SSH_SMSG_EXITSTATUS: case SSH_SMSG_EXITSTATUS:
channel_handle1(session,type) channel_handle1(session,type);
return; return;
case SSH_MSG_DEBUG: case SSH_MSG_DEBUG:
case SSH_MSG_IGNORE: case SSH_MSG_IGNORE: