From 73aa262647ff9948eaf95e83236ec323347e95d0 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto Date: Sat, 31 Jul 2010 20:12:05 +0000 Subject: fixed segfault in bignum.h, additional security limits, refactoring -- version 0.3.7 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index da2a6ac90..c8d91514e 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()) -- cgit v1.2.3