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

Diff for /src/usr.bin/ssh/kexgexc.c between version 1.30 and 1.31

version 1.30, 2019/01/21 09:54:11 version 1.31, 2019/01/21 09:55:52
Line 222 
Line 222 
             hashlen, kex->hostkey_alg, ssh->compat)) != 0)              hashlen, 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.30  
changed lines
  Added in v.1.31