From 94fd881f74beaed0ffca5fdca1b3504462715e71 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 27 Aug 2016 10:10:19 +0100 Subject: rct: early out on failure on verRange --- src/ringct/rctSigs.cpp | 8 +++++--- 1 file 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) -- cgit v1.2.3