From c4be7ce66992811c555375cb303f504153e1b33f Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 17 May 2000 23:02:03 +1000 Subject: - RSAless operation patch from kevin_oconnor@standardandpoors.com --- CREDITS | 1 + ChangeLog | 1 + sshd.c | 9 ++++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index 7ca3f788d..8ed3d80cc 100644 --- a/CREDITS +++ b/CREDITS @@ -33,6 +33,7 @@ Jim Knoble - Many patches jonchen (email unknown) - the original author of PAM support of SSH Juergen Keil - scp bugfixing Kees Cook - scp fixes +Kevin O'Connor - RSAless operation Kiyokazu SUTO - Bugfixes Lutz Jaenicke - Bugfixes Marc G. Fournier - Solaris patches diff --git a/ChangeLog b/ChangeLog index 8cefa0fd6..635bc2440 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,7 @@ - Solaris fixes - Checking for ssize_t and memmove. Based on patch from SAKAI Kiyotaka + - RSAless operation patch from kevin_oconnor@standardandpoors.com 20000513 - Fix for non-recognised DSA keys from Arkadiusz Miskiewicz diff --git a/sshd.c b/sshd.c index a13332cbd..256018f61 100644 --- a/sshd.c +++ b/sshd.c @@ -389,9 +389,12 @@ void destroy_sensitive_data(void) { /* Destroy the private and public keys. They will no longer be needed. */ - RSA_free(public_key); - RSA_free(sensitive_data.private_key); - RSA_free(sensitive_data.host_key); + if (public_key) + RSA_free(public_key); + if (sensitive_data.private_key) + RSA_free(sensitive_data.private_key); + if (sensitive_data.host_key) + RSA_free(sensitive_data.host_key); if (sensitive_data.dsa_host_key != NULL) key_free(sensitive_data.dsa_host_key); } -- cgit v1.2.3