git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f54055f
)
Fix copy constructor
author
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 27 Nov 2021 11:55:05 +0000 (14:55 +0300)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Sat, 27 Nov 2021 11:55:05 +0000 (14:55 +0300)
src/bignum.h
patch
|
blob
|
history
diff --git
a/src/bignum.h
b/src/bignum.h
index
f1ec8d4
..
f37d7ed
100644
(file)
--- a/
src/bignum.h
+++ b/
src/bignum.h
@@
-69,6
+69,7
@@
public:
CBigNum& operator=(const CBigNum& b)
{
+ bn = BN_new();
if (!BN_copy(bn, b.bn))
throw bignum_error("CBigNum::operator= : BN_copy failed");
return (*this);