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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.214 and 1.215

version 1.214, 2015/01/14 20:05:27 version 1.215, 2015/01/15 11:04:36
Line 396 
Line 396 
         authctxt.methoddata = NULL;          authctxt.methoddata = NULL;
         authctxt.sensitive = sensitive;          authctxt.sensitive = sensitive;
         authctxt.info_req_seen = 0;          authctxt.info_req_seen = 0;
           authctxt.agent_fd = -1;
         if (authctxt.method == NULL)          if (authctxt.method == NULL)
                 fatal("ssh_userauth2: internal error: cannot send userauth none request");                  fatal("ssh_userauth2: internal error: cannot send userauth none request");
   
Line 1102 
Line 1103 
 {  {
         Key *private;          Key *private;
         char prompt[300], *passphrase;          char prompt[300], *passphrase;
         int r, perm_ok = 0, quit, i;          int r, perm_ok = 0, quit = 0, i;
         struct stat st;          struct stat st;
   
         if (stat(filename, &st) < 0) {          if (stat(filename, &st) < 0) {
Line 1132 
Line 1133 
                                 quit = 1;                                  quit = 1;
                                 break;                                  break;
                         }                          }
                         debug2("bad passphrase given, try again...");                          if (i != 0)
                                   debug2("bad passphrase given, try again...");
                         break;                          break;
                 case SSH_ERR_SYSTEM_ERROR:                  case SSH_ERR_SYSTEM_ERROR:
                         if (errno == ENOENT) {                          if (errno == ENOENT) {

Legend:
Removed from v.1.214  
changed lines
  Added in v.1.215