diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-08 07:13:18 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-08 07:13:18 +0000 |
commit | 38d86e7e17f10fe4d2ea1372714f1be5e98aa960 (patch) | |
tree | 545b7251ebce8a59785b338fa48f1e4d7e270fad /libssh/packet.c | |
parent | c4f65cb5dde1b9b90d52d1d444c519cc66a8b656 (diff) | |
download | libssh-38d86e7e17f10fe4d2ea1372714f1be5e98aa960.tar.gz libssh-38d86e7e17f10fe4d2ea1372714f1be5e98aa960.tar.xz libssh-38d86e7e17f10fe4d2ea1372714f1be5e98aa960.zip |
Fix SSHv1 compile errors.
Thanks to Norbert Kiesel <nkiesel@tbdnetworks.com> for the patch.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@424 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/packet.c')
-rw-r--r-- | libssh/packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/packet.c b/libssh/packet.c index 6cb5f40..4802fe6 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -200,7 +200,7 @@ static int packet_read1(SSH_SESSION *session){ /* len is not encrypted */ len=ntohl(len); if(len> MAX_PACKET_LEN){ - ssh_set_error(session,SSH_FATAL,"read_packet(): Packet len too high(%uld %.8lx)",len,len); + ssh_set_error(session,SSH_FATAL,"read_packet(): Packet len too high(%u %.8x)",len,len); leave_function(); return SSH_ERROR; } @@ -265,8 +265,8 @@ static int packet_read1(SSH_SESSION *session){ len + padding - sizeof(u32)); #endif ssh_log(session,SSH_LOG_RARE,"invalid crc32"); - ssh_set_error(session,SSH_FATAL,"invalid crc32 : expected %.8lx, " - "got %.8lx",crc, + ssh_set_error(session,SSH_FATAL,"invalid crc32 : expected %.8x, " + "got %.8x",crc, ssh_crc32(buffer_get_rest(session->in_buffer),len+padding-sizeof(u32)) ); leave_function(); return SSH_ERROR; |