summaryrefslogtreecommitdiff
path: root/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'digest.c')
-rw-r--r--digest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/digest.c b/digest.c
index d6004e7de..a221819eb 100644
--- a/digest.c
+++ b/digest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: digest.c,v 1.2 2014/01/17 05:26:41 dtucker Exp $ */ 1/* $OpenBSD: digest.c,v 1.3 2014/01/20 00:08:48 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2013 Damien Miller <djm@mindrot.org> 3 * Copyright (c) 2013 Damien Miller <djm@mindrot.org>
4 * 4 *
@@ -125,6 +125,7 @@ ssh_digest_free(struct ssh_digest_ctx *ctx)
125{ 125{
126 EVP_MD_CTX_cleanup(&ctx->mdctx); 126 EVP_MD_CTX_cleanup(&ctx->mdctx);
127 memset(ctx, 0, sizeof(*ctx)); 127 memset(ctx, 0, sizeof(*ctx));
128 free(ctx);
128} 129}
129 130
130int 131int