diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index 1f9cdeed29cf8..aa14d702c7418 100644 --- a/crypto/cmp/cmp_client.c +++ b/crypto/cmp/cmp_client.c @@ -886,7 +886,7 @@ X509 *OSSL_CMP_exec_certreq(OSSL_CMP_CTX *ctx, int req_type, } if (ctx->rats_status) { - if (ossl_cmp_get_nonce(ctx)) + if (!ossl_cmp_get_nonce(ctx)) goto err; } else { kembasedmac = ossl_cmp_kem_BasedMac_required(ctx);