mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:33:42 +03:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
struct Curl_multi *multi = data->multi_easy ? data->multi_easy : data->multi;
|
||||||
X509_STORE *store = NULL;
|
X509_STORE *store = NULL;
|
||||||
|
|
||||||
|
DEBUGASSERT(multi);
|
||||||
if(multi &&
|
if(multi &&
|
||||||
multi->ssl_backend_data &&
|
multi->ssl_backend_data &&
|
||||||
multi->ssl_backend_data->store &&
|
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 Curl_multi *multi = data->multi_easy ? data->multi_easy : data->multi;
|
||||||
struct multi_ssl_backend_data *mbackend;
|
struct multi_ssl_backend_data *mbackend;
|
||||||
|
|
||||||
|
DEBUGASSERT(multi);
|
||||||
if(!multi)
|
if(!multi)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue