Skip to content

Commit

Permalink
rct: early out on failure on verRange
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Aug 28, 2016
1 parent 45349b6 commit 94fd881
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ringct/rctSigs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94fd881

Please sign in to comment.