Fixes #28978
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28980)
(cherry picked from commit
e9e643bc580e4ba0c6f8f9b4dd2ce59397b1b786)
size_t schemes_n = 0;
size_t i;
+ if (uri == NULL) {
+ ERR_raise(ERR_LIB_OSSL_STORE, CRYPTO_R_INVALID_NULL_ARGUMENT);
+ return 0;
+ }
+
/*
* Put the file scheme first. If the uri does represent an existing file,
* possible device name and all, then it should be loaded. Only a failed