From bc0753c369cbf499e990541e723f737c62559803 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sat, 27 Nov 2021 15:27:05 +0300 Subject: [PATCH] Init --- src/key.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/key.cpp b/src/key.cpp index 8dea4f2..53eea71 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -470,7 +470,7 @@ bool CPubKey::SetCompactSignature(uint256 hash, const std::vector if (nV<27 || nV>=35) return false; ECDSA_SIG *sig = ECDSA_SIG_new(); - BIGNUM *sig_r, *sig_s; + BIGNUM *sig_r = BN_new(), *sig_s = BN_new(); BN_bin2bn(&vchSig[1],32,sig_r); BN_bin2bn(&vchSig[33],32,sig_s); ECDSA_SIG_set0(sig, sig_r, sig_s); -- 1.7.1