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

Diff for /src/usr.bin/ssh/hostfile.c between version 1.68 and 1.69

version 1.68, 2017/03/10 04:26:06 version 1.69, 2017/04/30 23:10:43
Line 786 
Line 786 
                                 break;                                  break;
                         }                          }
                         if (!hostfile_read_key(&cp, &kbits, lineinfo.key)) {                          if (!hostfile_read_key(&cp, &kbits, lineinfo.key)) {
 #ifdef WITH_SSH1  
                                 sshkey_free(lineinfo.key);  
                                 lineinfo.key = sshkey_new(KEY_RSA1);  
                                 if (lineinfo.key  == NULL) {  
                                         error("%s: sshkey_new fail", __func__);  
                                         r = SSH_ERR_ALLOC_FAIL;  
                                         break;  
                                 }  
                                 if (!hostfile_read_key(&cp, &kbits,  
                                     lineinfo.key))  
                                         goto bad;  
 #else  
                                 goto bad;                                  goto bad;
 #endif  
                         }                          }
                         lineinfo.keytype = lineinfo.key->type;                          lineinfo.keytype = lineinfo.key->type;
                         lineinfo.comment = cp;                          lineinfo.comment = cp;

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69