[Bug 2252] New: RekeyLimit breaks ClientAlive

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Jul 6 20:42:35 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2252

            Bug ID: 2252
           Summary: RekeyLimit breaks ClientAlive
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: wiwi at progon.net

If RekeyLimit is enabled, ClientAlive messages will not be sent, ever!

Problem seems to be:

serverloop.c: 
   wait_until_can_do_something(...)

max_time_milliseconds is set to the remaining time to a rekey. 

client_alive_scheduled never gets set, as max_time_milliseconds!=0:

if (compat20 &&
  max_time_milliseconds == 0 && options.client_alive_interval) {
    client_alive_scheduled = 1;
    max_time_milliseconds =
     (u_int64_t)options.client_alive_interval * 1000;
  }

The if clause might need changed to something like this:

if (compat20 &&
  max_time_milliseconds > ((u_int64_t)options.client_alive_interval *
1000)  && 
  options.client_alive_interval) {
 ...

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list