mirror of
https://github.com/curl/curl.git
synced 2026-04-16 10:51:41 +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;
|
||||
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…
Add table
Add a link
Reference in a new issue