diff options
Diffstat (limited to 'cipher-3des1.c')
-rw-r--r-- | cipher-3des1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cipher-3des1.c b/cipher-3des1.c index 6f9f5dd6b..f815e8ae5 100644 --- a/cipher-3des1.c +++ b/cipher-3des1.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: cipher-3des1.c,v 1.1 2003/05/15 03:08:29 markus Exp $"); | 26 | RCSID("$OpenBSD: cipher-3des1.c,v 1.2 2003/12/22 20:29:55 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
@@ -126,6 +126,9 @@ ssh1_3des_cleanup(EVP_CIPHER_CTX *ctx) | |||
126 | struct ssh1_3des_ctx *c; | 126 | struct ssh1_3des_ctx *c; |
127 | 127 | ||
128 | if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) { | 128 | if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) { |
129 | EVP_CIPHER_CTX_cleanup(&c->k1); | ||
130 | EVP_CIPHER_CTX_cleanup(&c->k2); | ||
131 | EVP_CIPHER_CTX_cleanup(&c->k3); | ||
129 | memset(c, 0, sizeof(*c)); | 132 | memset(c, 0, sizeof(*c)); |
130 | xfree(c); | 133 | xfree(c); |
131 | EVP_CIPHER_CTX_set_app_data(ctx, NULL); | 134 | EVP_CIPHER_CTX_set_app_data(ctx, NULL); |