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

Diff for /src/usr.bin/ssh/Attic/kexdhc.c between version 1.25 and 1.26

version 1.25, 2019/01/21 09:54:11 version 1.26, 2019/01/21 09:55:52
Line 181 
Line 181 
             kex->hostkey_alg, ssh->compat)) != 0)              kex->hostkey_alg, ssh->compat)) != 0)
                 goto out;                  goto out;
   
         /* save session id */  
         if (kex->session_id == NULL) {  
                 kex->session_id_len = hashlen;  
                 kex->session_id = malloc(kex->session_id_len);  
                 if (kex->session_id == NULL) {  
                         r = SSH_ERR_ALLOC_FAIL;  
                         goto out;  
                 }  
                 memcpy(kex->session_id, hash, kex->session_id_len);  
         }  
   
         if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0)          if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0)
                 r = kex_send_newkeys(ssh);                  r = kex_send_newkeys(ssh);
  out:   out:

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26