]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix missing NULL check in prov_config_test
authorNeil Horman <nhorman@openssl.org>
Fri, 19 Apr 2024 14:17:54 +0000 (10:17 -0400)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Apr 2024 11:17:27 +0000 (12:17 +0100)
commita24739f0b0f3e89f6acc88153ffbdbba4f1c455e
tree3b57c6cf532f65f1dd82dd901569f6369790ca5d
parent8ffc17202ce9add268dceb8d877e9ee4861fdab3
Fix missing NULL check in prov_config_test

coverity-1596500 caught a missing null check.  We should never hit it as
the test harness always sets the environment variable, but lets add the
check for safety

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24208)

(cherry picked from commit 6ee369cd6ec751c03879da56178e75e2691e08cb)
test/prov_config_test.c