Skip to content

Commit

Permalink
cmp_kem.c: fix return in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Sep 14, 2023
1 parent ce9d13e commit 02da145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/cmp/cmp_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02da145

Please sign in to comment.