aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctSigs.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-27 10:10:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:30:38 +0100
commit94fd881f74beaed0ffca5fdca1b3504462715e71 (patch)
tree8221194206723ead34ab0418e165dd426a748c76 /src/ringct/rctSigs.cpp
parentwallet: do not ask for duplicate histograms (diff)
downloadmonero-94fd881f74beaed0ffca5fdca1b3504462715e71.tar.xz
rct: early out on failure on verRange
Diffstat (limited to 'src/ringct/rctSigs.cpp')
-rw-r--r--src/ringct/rctSigs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp
index 348051419..2fedfa761 100644
--- a/src/ringct/rctSigs.cpp
+++ b/src/ringct/rctSigs.cpp
@@ -338,9 +338,11 @@ namespace rct {
subKeys(CiH[i], as.Ci[i], H2[i]);
addKeys(Ctmp, Ctmp, as.Ci[i]);
}
- bool reb = equalKeys(C, Ctmp);
- bool rab = VerASNL(as.Ci, CiH, as.asig);
- return (reb && rab);
+ if (!equalKeys(C, Ctmp))
+ return false;
+ if (!VerASNL(as.Ci, CiH, as.asig))
+ return false;
+ return true;
}
key get_pre_mlsag_hash(const rctSig &rv)