jonathancammack / rpms / openssh

Forked from rpms/openssh 8 months ago
Clone

Blame SOURCES/openssh-7.4p1-rekeying-timeouts.patch

b58e57
diff --git a/serverloop.c b/serverloop.c
b58e57
index b5eb3440..1535eeb2 100644
b58e57
--- a/serverloop.c
b58e57
+++ b/serverloop.c
b58e57
@@ -225,9 +225,10 @@ wait_until_can_do_something(int connection_in, int connection_out,
b58e57
 		uint64_t keepalive_ms =
b58e57
 		    (uint64_t)options.client_alive_interval * 1000;
b58e57
 
b58e57
-		client_alive_scheduled = 1;
b58e57
-		if (max_time_ms == 0 || max_time_ms > keepalive_ms)
b58e57
+		if (max_time_ms == 0 || max_time_ms > keepalive_ms) {
b58e57
 			max_time_ms = keepalive_ms;
b58e57
+			client_alive_scheduled = 1;
b58e57
+		}
b58e57
 	}
b58e57
 
b58e57
 #if 0
b58e57