From dd6a0b51acea0e7b24eea800fd27b3f96c0ed8cb Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 13 Jul 2013 22:56:07 +0200 Subject: Server: fix rekeying --- src/ecdh.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/ecdh.c') diff --git a/src/ecdh.c b/src/ecdh.c index 075810a..bd46264 100644 --- a/src/ecdh.c +++ b/src/ecdh.c @@ -312,16 +312,6 @@ int ssh_server_ecdh_init(ssh_session session, ssh_buffer packet){ return SSH_ERROR; } - /* Free private keys as they should not be readable after this point */ - if (session->srv.rsa_key) { - ssh_key_free(session->srv.rsa_key); - session->srv.rsa_key = NULL; - } - if (session->srv.dsa_key) { - ssh_key_free(session->srv.dsa_key); - session->srv.dsa_key = NULL; - } - ssh_log(session,SSH_LOG_PROTOCOL, "SSH_MSG_KEXDH_REPLY sent"); rc = packet_send(session); if (rc == SSH_ERROR) { -- cgit