From 57a1fff1af462fc101454c2df04c81bceb68c46e Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 1 Jan 2018 23:13:13 +0000 Subject: [PATCH] crypt: fix usage of DH_compute_key, close #1469 --- modules/crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/crypt.cpp b/modules/crypt.cpp index 1b90f851..cf128ede 100644 --- a/modules/crypt.cpp +++ b/modules/crypt.cpp @@ -142,7 +142,7 @@ class CCryptMod : public CModule { } bool DH1080_comp(CString& sOtherPubKey, CString& sSecretKey) { - unsigned long len; + long len; unsigned char* key = nullptr; BIGNUM* bOtherPubKey = nullptr;