From eaded1ad6c72b123748986a939f4074b4121dc27 Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Thu, 14 Sep 2023 13:26:08 +0200 Subject: [PATCH] cmp_kem.c: fix return in case of error --- crypto/cmp/cmp_kem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/cmp/cmp_kem.c b/crypto/cmp/cmp_kem.c index 87d0de1004df51..8e7241c596533e 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;