]> andersk Git - openssh.git/commitdiff
- RSAless operation patch from kevin_oconnor@standardandpoors.com
authordamien <damien>
Wed, 17 May 2000 13:02:03 +0000 (13:02 +0000)
committerdamien <damien>
Wed, 17 May 2000 13:02:03 +0000 (13:02 +0000)
CREDITS
ChangeLog
sshd.c

diff --git a/CREDITS b/CREDITS
index 7ca3f788d38a4151f67997a4e82dd8b243efbfcc..8ed3d80cc9954f016eeabd6f59e1f6f5fe988ae0 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -33,6 +33,7 @@ Jim Knoble <jmknoble@pobox.com> - Many patches
 jonchen (email unknown) - the original author of PAM support of SSH
 Juergen Keil <jk@tools.de> - scp bugfixing
 Kees Cook <cook@cpoint.net> - scp fixes
+Kevin O'Connor <kevin_oconnor@standardandpoors.com> - RSAless operation
 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> - Bugfixes
 Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE> - Bugfixes
 Marc G. Fournier <marc.fournier@acadiau.ca> - Solaris patches
index 8cefa0fd60f700fb339eca7205a7d607fe09c26d..635bc24408125f13671f8c7d0077ac6ef5597f44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,7 @@
   - Solaris fixes
  - Checking for ssize_t and memmove. Based on patch from SAKAI Kiyotaka 
    <ksakai@kso.netwk.ntt-at.co.jp>
+ - 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 a13332cbddce8d01007ec384a696a1e1ba6678c5..256018f61e17d238442d09d2c03dd0f4f24737bc 100644 (file)
--- 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);
 }
This page took 0.075207 seconds and 5 git commands to generate.