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:
parent
559918d80c
commit
b3c4bbfcaa
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user