diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_pmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_pmeth.c b/src/lib/libcrypto/dh/dh_pmeth.c index 5ae72b7d4c..ec4553c0a8 100644 --- a/src/lib/libcrypto/dh/dh_pmeth.c +++ b/src/lib/libcrypto/dh/dh_pmeth.c | |||
@@ -80,7 +80,7 @@ typedef struct | |||
80 | static int pkey_dh_init(EVP_PKEY_CTX *ctx) | 80 | static int pkey_dh_init(EVP_PKEY_CTX *ctx) |
81 | { | 81 | { |
82 | DH_PKEY_CTX *dctx; | 82 | DH_PKEY_CTX *dctx; |
83 | dctx = OPENSSL_malloc(sizeof(DH_PKEY_CTX)); | 83 | dctx = malloc(sizeof(DH_PKEY_CTX)); |
84 | if (!dctx) | 84 | if (!dctx) |
85 | return 0; | 85 | return 0; |
86 | dctx->prime_len = 1024; | 86 | dctx->prime_len = 1024; |
@@ -111,7 +111,7 @@ 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 | if (dctx) |
114 | OPENSSL_free(dctx); | 114 | free(dctx); |
115 | } | 115 | } |
116 | 116 | ||
117 | static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | 117 | static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) |