[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.288 and 1.289

version 1.288, 2018/10/11 03:48:04 version 1.289, 2018/11/16 02:46:20
Line 371 
Line 371 
   
         /* setup authentication context */          /* setup authentication context */
         memset(&authctxt, 0, sizeof(authctxt));          memset(&authctxt, 0, sizeof(authctxt));
         pubkey_prepare(&authctxt);  
         authctxt.server_user = server_user;          authctxt.server_user = server_user;
         authctxt.local_user = local_user;          authctxt.local_user = local_user;
         authctxt.host = host;          authctxt.host = host;
Line 384 
Line 383 
         authctxt.active_ktype = authctxt.oktypes = authctxt.ktypes = NULL;          authctxt.active_ktype = authctxt.oktypes = authctxt.ktypes = NULL;
         authctxt.info_req_seen = 0;          authctxt.info_req_seen = 0;
         authctxt.agent_fd = -1;          authctxt.agent_fd = -1;
           pubkey_prepare(&authctxt);
         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 1612 
Line 1612 
 {  {
         Identity *id;          Identity *id;
   
         if (authctxt->agent_fd != -1)          if (authctxt->agent_fd != -1) {
                 ssh_close_authentication_socket(authctxt->agent_fd);                  ssh_close_authentication_socket(authctxt->agent_fd);
                   authctxt->agent_fd = -1;
           }
         for (id = TAILQ_FIRST(&authctxt->keys); id;          for (id = TAILQ_FIRST(&authctxt->keys); id;
             id = TAILQ_FIRST(&authctxt->keys)) {              id = TAILQ_FIRST(&authctxt->keys)) {
                 TAILQ_REMOVE(&authctxt->keys, id, next);                  TAILQ_REMOVE(&authctxt->keys, id, next);

Legend:
Removed from v.1.288  
changed lines
  Added in v.1.289