openssl: two multi pointer checks should probably rather be asserts

... so add the asserts now and consider removing the dynamic checks in a
future.

Ref: #12261
Closes #12264
This commit is contained in:
Daniel Stenberg 2023-11-04 00:01:28 +01:00
parent 559918d80c
commit b3c4bbfcaa
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -3374,6 +3374,7 @@ static X509_STORE *get_cached_x509_store(struct Curl_cfilter *cf,
struct Curl_multi *multi = data->multi_easy ? data->multi_easy : data->multi;
X509_STORE *store = NULL;
DEBUGASSERT(multi);
if(multi &&
multi->ssl_backend_data &&
multi->ssl_backend_data->store &&
@ -3393,6 +3394,7 @@ static void set_cached_x509_store(struct Curl_cfilter *cf,
struct Curl_multi *multi = data->multi_easy ? data->multi_easy : data->multi;
struct multi_ssl_backend_data *mbackend;
DEBUGASSERT(multi);
if(!multi)
return;