diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-17 23:02:03 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-17 23:02:03 +1000 |
commit | c4be7ce66992811c555375cb303f504153e1b33f (patch) | |
tree | 429ab7e2c38e6042e377df9dc4031de433c06879 | |
parent | 615f939ebb48fdde404aae705057202512731331 (diff) |
- RSAless operation patch from kevin_oconnor@standardandpoors.com
-rw-r--r-- | CREDITS | 1 | ||||
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | sshd.c | 9 |
3 files changed, 8 insertions, 3 deletions
@@ -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 @@ -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 @@ -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); } |