git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Consistency fix: Do not return non-const pointer to private field
[novacoin.git]
/
src
/
bignum.h
diff --git
a/src/bignum.h
b/src/bignum.h
index
acba29a
..
3d5ec4b
100644
(file)
--- a/
src/bignum.h
+++ b/
src/bignum.h
@@
-468,12
+468,8
@@
public:
return ToString(16);
}
- const BIGNUM* get() const {
- return bn;
- }
-
- BIGNUM* get() {
- return bn;
+ BIGNUM* get() const {
+ return BN_dup(bn);
}
unsigned int GetSerializeSize(int nType=0, int nVersion=PROTOCOL_VERSION) const