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

Diff for /src/usr.bin/ssh/authfile.c between version 1.140 and 1.141

version 1.140, 2020/04/17 07:15:11 version 1.141, 2020/06/18 23:33:38
Line 258 
Line 258 
 sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)  sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
 {  {
         char *pubfile = NULL;          char *pubfile = NULL;
         int r;          int r, oerrno;
   
         if (keyp != NULL)          if (keyp != NULL)
                 *keyp = NULL;                  *keyp = NULL;
Line 278 
Line 278 
         if ((r = sshkey_load_pubkey_from_private(filename, keyp)) == 0)          if ((r = sshkey_load_pubkey_from_private(filename, keyp)) == 0)
                 goto out;                  goto out;
   
           /* Pretend we couldn't find the key */
           r = SSH_ERR_SYSTEM_ERROR;
           errno = ENOENT;
   
  out:   out:
           oerrno = errno;
         free(pubfile);          free(pubfile);
           errno = oerrno;
         return r;          return r;
 }  }
   

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141