From c0db16bf3b325061247d45d04dbf55342591287c Mon Sep 17 00:00:00 2001 From: Fabian Schuh Date: Fri, 13 Apr 2018 11:21:36 +0200 Subject: [PATCH] Fix erros in unittest --- src/crypto/dh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/dh.cpp b/src/crypto/dh.cpp index e7f6c59d3..981ba47da 100644 --- a/src/crypto/dh.cpp +++ b/src/crypto/dh.cpp @@ -15,7 +15,7 @@ namespace fc { bool diffie_hellman::generate_params( int s, uint8_t g ) { - ssl_dh dh; + ssl_dh dh(DH_new()); DH_generate_parameters_ex(dh.obj, s, g, NULL); #if OPENSSL_VERSION_NUMBER >= 0x10100000L ssl_bignum bn_p;