diff --git a/crypto/cmp/cmp_kem.c b/crypto/cmp/cmp_kem.c index de42366cc7f0af..4b0c01d884f6a6 100644 --- a/crypto/cmp/cmp_kem.c +++ b/crypto/cmp/cmp_kem.c @@ -53,7 +53,7 @@ static int x509_algor_from_nid_with_md(int nid, X509_ALGOR **palg, *palg = NULL; if (md == NULL) - return 1; + return 0; /* need to embed algorithm ID inside another */ if (!ossl_x509_algor_new_from_md(&algtmp, md)) goto err;