aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorSatoshi Nakamoto <satoshin@gmx.com>2010-07-31 20:12:05 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-07-31 20:12:05 +0000
commit73aa262647ff9948eaf95e83236ec323347e95d0 (patch)
treee98a3a0ac2caa95047eb09ee7e8ea0ff817a0d9d /main.cpp
parente1cb7ce0177de72b00e06dc4c8fe1d414723a9e7 (diff)
downloadbitcoin-73aa262647ff9948eaf95e83236ec323347e95d0.tar.xz
fixed segfault in bignum.h, additional security limits, refactoringv0.3.7
-- version 0.3.7
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index da2a6ac903..c8d91514e9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -3036,7 +3036,8 @@ bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CK
foreach(CWalletTx* pcoin, setCoins)
for (int nOut = 0; nOut < pcoin->vout.size(); nOut++)
if (pcoin->vout[nOut].IsMine())
- SignSignature(*pcoin, wtxNew, nIn++);
+ if (!SignSignature(*pcoin, wtxNew, nIn++))
+ return false;
// Check that enough fee is included
if (nFee < wtxNew.GetMinFee())