diff --git a/crypto/zkp_ecdsa.c b/crypto/zkp_ecdsa.c index 7ae0187736..aca2c21779 100644 --- a/crypto/zkp_ecdsa.c +++ b/crypto/zkp_ecdsa.c @@ -365,8 +365,10 @@ int zkp_ecdsa_verify_digest(const ecdsa_curve *curve, } if (result == 0) { - secp256k1_ecdsa_signature_normalize(context_read_only, &signature, - &signature); + (void)secp256k1_ecdsa_signature_normalize( + context_read_only, &signature, + &signature); // The return value inidicates whether the signature was + // already normalized if (secp256k1_ecdsa_verify(context_read_only, &signature, digest, &public_key) != 1) {