From 6ae3ecac79c9dcb022ca666d95fb463772aa84be Mon Sep 17 00:00:00 2001 From: Bence Mali <64798108+bencemali@users.noreply.github.com> Date: Wed, 8 May 2024 17:38:20 +0200 Subject: [PATCH] no unwanted error left in queue from OBJ_create (#404) Signed-off-by: Bence Mali --- oqsprov/oqsprov.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oqsprov/oqsprov.c b/oqsprov/oqsprov.c index ea5d25aa..17ee3d5e 100644 --- a/oqsprov/oqsprov.c +++ b/oqsprov/oqsprov.c @@ -1313,8 +1313,10 @@ int OQS_PROVIDER_ENTRYPOINT_NAME(const OSSL_CORE_HANDLE *handle, * At least one core version hangs up; so don't do this there: */ if (strcmp("3.1.0", ossl_versionp)) { + ERR_set_mark(); OBJ_create(oqs_oid_alg_list[i], oqs_oid_alg_list[i + 1], oqs_oid_alg_list[i + 1]); + ERR_pop_to_mark(); } if (!oqs_set_nid((char *)oqs_oid_alg_list[i + 1],