=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.152 retrieving revision 1.153 diff -u -r1.152 -r1.153 --- src/usr.bin/ssh/packet.c 2008/05/08 06:59:01 1.152 +++ src/usr.bin/ssh/packet.c 2008/05/19 06:14:02 1.153 @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.152 2008/05/08 06:59:01 markus Exp $ */ +/* $OpenBSD: packet.c,v 1.153 2008/05/19 06:14:02 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1185,9 +1185,10 @@ for (;;) { if (compat20) { type = packet_read_poll2(seqnr_p); - keep_alive_timeouts = 0; - if (type) + if (type) { + keep_alive_timeouts = 0; DBG(debug("received packet type %d", type)); + } switch (type) { case SSH2_MSG_IGNORE: debug3("Received SSH2_MSG_IGNORE");