diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/dh/dh_pmeth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_pmeth.c b/src/lib/libcrypto/dh/dh_pmeth.c index c359bb4d2b..c70feb3789 100644 --- a/src/lib/libcrypto/dh/dh_pmeth.c +++ b/src/lib/libcrypto/dh/dh_pmeth.c | |||
@@ -110,8 +110,7 @@ static int pkey_dh_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) | |||
110 | static void pkey_dh_cleanup(EVP_PKEY_CTX *ctx) | 110 | static void pkey_dh_cleanup(EVP_PKEY_CTX *ctx) |
111 | { | 111 | { |
112 | DH_PKEY_CTX *dctx = ctx->data; | 112 | DH_PKEY_CTX *dctx = ctx->data; |
113 | if (dctx) | 113 | free(dctx); |
114 | free(dctx); | ||
115 | } | 114 | } |
116 | 115 | ||
117 | static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | 116 | static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) |