field: Verify field element even after secp256k1_fe_set_b32 fails

This commit is contained in:
Tim Ruffing 2023-02-01 11:37:39 +01:00
parent 8ebe5c5205
commit d93f62e369
2 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,7 @@ static int secp256k1_fe_set_b32(secp256k1_fe *r, const unsigned char *a) {
secp256k1_fe_verify(r);
} else {
r->normalized = 0;
secp256k1_fe_verify(r);
}
#endif
return ret;

View File

@ -347,6 +347,7 @@ static int secp256k1_fe_set_b32(secp256k1_fe *r, const unsigned char *a) {
secp256k1_fe_verify(r);
} else {
r->normalized = 0;
secp256k1_fe_verify(r);
}
#endif
return ret;