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 /sshd.c | |
parent | 615f939ebb48fdde404aae705057202512731331 (diff) |
- RSAless operation patch from kevin_oconnor@standardandpoors.com
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -389,9 +389,12 @@ void | |||
389 | destroy_sensitive_data(void) | 389 | destroy_sensitive_data(void) |
390 | { | 390 | { |
391 | /* Destroy the private and public keys. They will no longer be needed. */ | 391 | /* Destroy the private and public keys. They will no longer be needed. */ |
392 | RSA_free(public_key); | 392 | if (public_key) |
393 | RSA_free(sensitive_data.private_key); | 393 | RSA_free(public_key); |
394 | RSA_free(sensitive_data.host_key); | 394 | if (sensitive_data.private_key) |
395 | RSA_free(sensitive_data.private_key); | ||
396 | if (sensitive_data.host_key) | ||
397 | RSA_free(sensitive_data.host_key); | ||
395 | if (sensitive_data.dsa_host_key != NULL) | 398 | if (sensitive_data.dsa_host_key != NULL) |
396 | key_free(sensitive_data.dsa_host_key); | 399 | key_free(sensitive_data.dsa_host_key); |
397 | } | 400 | } |