diff options
Diffstat (limited to 'process-packet.c')
-rw-r--r-- | process-packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/process-packet.c b/process-packet.c index fe4a543..b5125ba 100644 --- a/process-packet.c +++ b/process-packet.c @@ -52,6 +52,8 @@ void process_packet() { ses.lastpacket = type; + ses.last_packet_time = time(NULL); + /* These packets we can receive at any time */ switch(type) { @@ -70,8 +72,6 @@ void process_packet() { dropbear_close("Disconnect received"); } - ses.last_packet_time = time(NULL); - /* This applies for KEX, where the spec says the next packet MUST be * NEWKEYS */ if (ses.requirenext != 0) { |