[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.270 and 1.271

version 1.270, 2015/02/20 22:17:21 version 1.271, 2015/02/23 16:33:25
Line 2152 
Line 2152 
 static void  static void
 update_known_hosts(struct hostkeys_update_ctx *ctx)  update_known_hosts(struct hostkeys_update_ctx *ctx)
 {  {
         int r, loglevel = options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK ?          int r, was_raw = 0;
           int loglevel = options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK ?
             SYSLOG_LEVEL_INFO : SYSLOG_LEVEL_VERBOSE;              SYSLOG_LEVEL_INFO : SYSLOG_LEVEL_VERBOSE;
         char *fp, *response;          char *fp, *response;
         size_t i;          size_t i;
Line 2176 
Line 2177 
                 free(fp);                  free(fp);
         }          }
         if (options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) {          if (options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) {
                 leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);                  if (get_saved_tio() != NULL) {
                           leave_raw_mode(1);
                           was_raw = 1;
                   }
                 response = NULL;                  response = NULL;
                 for (i = 0; !quit_pending && i < 3; i++) {                  for (i = 0; !quit_pending && i < 3; i++) {
                         free(response);                          free(response);
Line 2196 
Line 2200 
                 if (quit_pending || i >= 3 || response == NULL)                  if (quit_pending || i >= 3 || response == NULL)
                         options.update_hostkeys = 0;                          options.update_hostkeys = 0;
                 free(response);                  free(response);
                 enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE);                  if (was_raw)
                           enter_raw_mode(1);
         }          }
   
         /*          /*

Legend:
Removed from v.1.270  
changed lines
  Added in v.1.271