vishalmishra434 / rpms / openssh

Forked from rpms/openssh 3 months ago
Clone
Tomáš Mráz 1961bc
Index: packet.c
Tomáš Mráz 1961bc
===================================================================
Tomáš Mráz 1961bc
RCS file: /cvs/src/usr.bin/ssh/packet.c,v
Tomáš Mráz 1961bc
retrieving revision 1.152
Tomáš Mráz 1961bc
diff -u -p packet.c
Tomáš Mráz 1961bc
--- packet.c	8 May 2008 06:59:01 -0000
Tomáš Mráz 1961bc
+++ packet.c	19 May 2008 04:00:34 -0000
Tomáš Mráz 1961bc
@@ -1185,9 +1185,10 @@ packet_read_poll_seqnr(u_int32_t *seqnr_
Tomáš Mráz 1961bc
 	for (;;) {
Tomáš Mráz 1961bc
 		if (compat20) {
Tomáš Mráz 1961bc
 			type = packet_read_poll2(seqnr_p);
Tomáš Mráz 1961bc
-			keep_alive_timeouts = 0;
Tomáš Mráz 1961bc
-			if (type)
Tomáš Mráz 1961bc
+			if (type) {
Tomáš Mráz 1961bc
+				keep_alive_timeouts = 0;
Tomáš Mráz 1961bc
 				DBG(debug("received packet type %d", type));
Tomáš Mráz 1961bc
+			}
Tomáš Mráz 1961bc
 			switch (type) {
Tomáš Mráz 1961bc
 			case SSH2_MSG_IGNORE:
Tomáš Mráz 1961bc
 				debug3("Received SSH2_MSG_IGNORE");