mirror of
https://github.com/curl/curl.git
synced 2025-09-18 18:12:49 +03:00
Curl_hsts_loadcb: don't attempt to load if hsts wasn't inited
Reported-by: Jonathan Cardoso Fixes #7710 Closes #7711
This commit is contained in:
parent
24a7cbe9d2
commit
8822ecf7a1
|
@ -526,7 +526,9 @@ CURLcode Curl_hsts_loadfile(struct Curl_easy *data,
|
||||||
*/
|
*/
|
||||||
CURLcode Curl_hsts_loadcb(struct Curl_easy *data, struct hsts *h)
|
CURLcode Curl_hsts_loadcb(struct Curl_easy *data, struct hsts *h)
|
||||||
{
|
{
|
||||||
return hsts_pull(data, h);
|
if(h)
|
||||||
|
return hsts_pull(data, h);
|
||||||
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_HSTS */
|
#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_HSTS */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user