Fix missing NULL check in prov_config_test openssl-3.1
authorNeil Horman <nhorman@openssl.org>
Fri, 19 Apr 2024 14:17:54 +0000 (10:17 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 26 Apr 2024 12:04:25 +0000 (14:04 +0200)
commita380ec952f138f644d227637eeba90fd1e17f72f
tree200f8180e29af28f8c23895db683276d90be68f0
parent163202f0b95cfc7e666e45cafc55a505f51f6153
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/24198)
test/prov_config_test.c