rct: early out on failure on verRange

This commit is contained in:
moneromooo-monero 2016-08-27 10:10:19 +01:00
parent 45349b6f7c
commit 94fd881f74
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -338,9 +338,11 @@ namespace rct {
subKeys(CiH[i], as.Ci[i], H2[i]); subKeys(CiH[i], as.Ci[i], H2[i]);
addKeys(Ctmp, Ctmp, as.Ci[i]); addKeys(Ctmp, Ctmp, as.Ci[i]);
} }
bool reb = equalKeys(C, Ctmp); if (!equalKeys(C, Ctmp))
bool rab = VerASNL(as.Ci, CiH, as.asig); return false;
return (reb && rab); if (!VerASNL(as.Ci, CiH, as.asig))
return false;
return true;
} }
key get_pre_mlsag_hash(const rctSig &rv) key get_pre_mlsag_hash(const rctSig &rv)