Skip to content

Commit

Permalink
no unwanted error left in queue from OBJ_create
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Mali <[email protected]>
  • Loading branch information
bencemali committed May 8, 2024
1 parent 4311e5d commit a98e1d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oqsprov/oqsprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit a98e1d9

Please sign in to comment.