aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-23 08:27:31 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-23 08:27:31 +0000
commit1ac654ec6c5f337cb5dd73eb9fd2bcb762753eee (patch)
tree9533031b61696705fb8541179aa56a6e09f87c8e
parentfecbdff17943767a79046cb34ffea56859fd8c62 (diff)
downloadlibssh-1ac654ec6c5f337cb5dd73eb9fd2bcb762753eee.tar.gz
libssh-1ac654ec6c5f337cb5dd73eb9fd2bcb762753eee.tar.xz
libssh-1ac654ec6c5f337cb5dd73eb9fd2bcb762753eee.zip
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
-rw-r--r--libssh/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index 3c54236f..a503df71 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -534,7 +534,7 @@ static int packet_send1(SSH_SESSION *session) {
"%d bytes after comp + %d padding bytes = %d bytes packet",
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;
}
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_STDERR_DATA:
case SSH_SMSG_EXITSTATUS:
- channel_handle1(session,type)
+ channel_handle1(session,type);
return;
case SSH_MSG_DEBUG:
case SSH_MSG_IGNORE: