comparison process-packet.c @ 493:6cd2152aae0b idle-timeout

Idle-timeout patch from Farrell Aultman, need to figure whether to only account DATA packets and whether server->client data makes sense too.
author Matt Johnston <matt@ucc.asn.au>
date Mon, 22 Sep 2008 15:28:52 +0000
parents 7e43f5e473b9
children
comparison
equal deleted inserted replaced
492:b956d6151600 493:6cd2152aae0b
68 case SSH_MSG_DISCONNECT: 68 case SSH_MSG_DISCONNECT:
69 /* TODO cleanup? */ 69 /* TODO cleanup? */
70 dropbear_close("Disconnect received"); 70 dropbear_close("Disconnect received");
71 } 71 }
72 72
73 ses.last_recv_packet_time = time(NULL);
73 74
74 /* This applies for KEX, where the spec says the next packet MUST be 75 /* This applies for KEX, where the spec says the next packet MUST be
75 * NEWKEYS */ 76 * NEWKEYS */
76 if (ses.requirenext != 0) { 77 if (ses.requirenext != 0) {
77 if (ses.requirenext != type) { 78 if (ses.requirenext != type) {