bmh10 / rpms / openssh

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