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:15:59 +0000 (12:15 +0100)
commit6ee369cd6ec751c03879da56178e75e2691e08cb
tree46c6de7e60b026d6b3d861de8d781a2b4119a858
parentfc9649f61a8ac5f980da6807214fcbbbae1c45aa
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)
test/prov_config_test.c