summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-12-11 23:26:25 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-12-11 23:26:25 +0100
commit3ace7817b4c438d34f63313493cd82ae0dcf2757 (patch)
tree998a5415377a1e1b7006059a093d37ce179202b5 /libssh/packet.c
parent0de35ca8f09cf6d2ac101db3730cea58ca72caf1 (diff)
downloadlibssh-3ace7817b4c438d34f63313493cd82ae0dcf2757.tar.gz
libssh-3ace7817b4c438d34f63313493cd82ae0dcf2757.tar.xz
libssh-3ace7817b4c438d34f63313493cd82ae0dcf2757.zip
Async connection + banner fetch is working
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index ef406bcc..09b0a745 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -311,7 +311,7 @@ void ssh_packet_set_default_callbacks(ssh_session session){
*/
void ssh_packet_process(ssh_session session, uint8_t type){
struct ssh_iterator *i;
- int r;
+ int r=SSH_PACKET_NOT_USED;
ssh_packet_callbacks cb;
enter_function();
ssh_log(session,SSH_LOG_PACKET, "Dispatching handler for packet type %d",type);
@@ -335,6 +335,8 @@ void ssh_packet_process(ssh_session session, uint8_t type){
if(r==SSH_PACKET_USED)
break;
}
+ if(r==SSH_PACKET_NOT_USED)
+ ssh_log(session,SSH_LOG_RARE,"Couldn't do anything with packet type %d",type);
error:
leave_function();
}