git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
68324ee
)
Init
author
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 27 Nov 2021 12:27:05 +0000 (15:27 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 27 Nov 2021 12:27:05 +0000 (15:27 +0300)
src/key.cpp
patch
|
blob
|
history
diff --git
a/src/key.cpp
b/src/key.cpp
index
8dea4f2
..
53eea71
100644
(file)
--- a/
src/key.cpp
+++ b/
src/key.cpp
@@
-470,7
+470,7
@@
bool CPubKey::SetCompactSignature(uint256 hash, const std::vector<unsigned char>
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);