Skip to content

Commit

Permalink
Fixed deref without null check.
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ashley <[email protected]>
  • Loading branch information
ashman-p authored Sep 13, 2024
1 parent e95503f commit f55aa6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oqsprov/oqsprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ int OQS_PROVIDER_ENTRYPOINT_NAME(const OSSL_CORE_HANDLE *handle,
* Not testing for errors is intentional.
* At least one core version hangs up; so don't do this there:
*/
if (strcmp("3.1.0", ossl_versionp)) {
if (ossl_versionp && 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]);
Expand Down

0 comments on commit f55aa6a

Please sign in to comment.