aboutsummaryrefslogtreecommitdiff
path: root/src/libcrypto.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-09-26 11:17:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-09 12:05:40 +0200
commit101df98e541b0d7e3a81e44f4130121edea9b3a9 (patch)
treeaee2270ce1967a40e84734653a7748d895ac19ab /src/libcrypto.c
parentf747e46f337fdbc82525faa15568da3d56253e52 (diff)
downloadlibssh-101df98e541b0d7e3a81e44f4130121edea9b3a9.tar.gz
libssh-101df98e541b0d7e3a81e44f4130121edea9b3a9.tar.xz
libssh-101df98e541b0d7e3a81e44f4130121edea9b3a9.zip
libcrypto: Avoid double free
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libcrypto.c')
-rw-r--r--src/libcrypto.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index b24a18f8..5c0ff2de 100644
--- a/src/libcrypto.c
+++ b/src/libcrypto.c
@@ -437,7 +437,6 @@ HMACCTX hmac_init(const void *key, int len, enum ssh_hmac_e type) {
break;
default:
HMAC_CTX_free(ctx);
- SAFE_FREE(ctx);
ctx = NULL;
}