[BACK]Return to clientloop.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/clientloop.c between version 1.387 and 1.388

version 1.387, 2023/01/06 02:39:59 version 1.388, 2023/03/03 02:37:58
Line 149 
Line 149 
 static int connection_out;      /* Connection to server (output). */  static int connection_out;      /* Connection to server (output). */
 static int need_rekeying;       /* Set to non-zero if rekeying is requested. */  static int need_rekeying;       /* Set to non-zero if rekeying is requested. */
 static int session_closed;      /* In SSH2: login session closed. */  static int session_closed;      /* In SSH2: login session closed. */
 static u_int x11_refuse_time;   /* If >0, refuse x11 opens after this time. */  static time_t x11_refuse_time;  /* If >0, refuse x11 opens after this time. */
 static time_t server_alive_time;        /* Time to do server_alive_check */  static time_t server_alive_time;        /* Time to do server_alive_check */
 static int hostkeys_update_complete;  static int hostkeys_update_complete;
 static int session_setup_complete;  static int session_setup_complete;
Line 367 
Line 367 
   
                         if (timeout != 0 && x11_refuse_time == 0) {                          if (timeout != 0 && x11_refuse_time == 0) {
                                 now = monotime() + 1;                                  now = monotime() + 1;
                                 if (UINT_MAX - timeout < now)                                  if (SSH_TIME_T_MAX - timeout < now)
                                         x11_refuse_time = UINT_MAX;                                          x11_refuse_time = SSH_TIME_T_MAX;
                                 else                                  else
                                         x11_refuse_time = now + timeout;                                          x11_refuse_time = now + timeout;
                                 channel_set_x11_refuse_time(ssh,                                  channel_set_x11_refuse_time(ssh,
Line 1608 
Line 1608 
                     "malicious server.");                      "malicious server.");
                 return NULL;                  return NULL;
         }          }
         if (x11_refuse_time != 0 && (u_int)monotime() >= x11_refuse_time) {          if (x11_refuse_time != 0 && monotime() >= x11_refuse_time) {
                 verbose("Rejected X11 connection after ForwardX11Timeout "                  verbose("Rejected X11 connection after ForwardX11Timeout "
                     "expired");                      "expired");
                 return NULL;                  return NULL;

Legend:
Removed from v.1.387  
changed lines
  Added in v.1.388