de-fatal input_kex_ecdh_reply() and input_kex_ecdh_init()

This commit is contained in:
Markus Friedl
2012-01-18 14:25:10 +01:00
parent 19a6ad8184
commit ef6bdcc76d
2 changed files with 4 additions and 4 deletions

View File

@@ -185,7 +185,7 @@ input_kex_ecdh_reply(int type, u_int32_t seq, struct ssh *ssh)
if ((r = sshkey_verify(server_host_key, signature, slen, hash,
hashlen, datafellows)) != 0)
fatal("key_verify failed for server_host_key: %s", ssh_err(r));
goto out;
/* save session id */
if (kex->session_id == NULL) {

View File

@@ -169,9 +169,9 @@ input_kex_ecdh_init(int type, u_int32_t seq, struct ssh *ssh)
}
/* sign H */
if (PRIVSEP(sshkey_sign(server_host_private, &signature, &slen,
hash, hashlen, datafellows)) < 0)
fatal("kexdh_server: sshkey_sign failed");
if ((r = PRIVSEP(sshkey_sign(server_host_private, &signature, &slen,
hash, hashlen, datafellows))) < 0)
goto out;
/* destroy_sensitive_data(); */