Reported-by: Joshua Rogers
Closes #21615
return CURLE_OUT_OF_MEMORY;
}
}
- else
+ else if(!data->share || !data->share->hsts) {
+ /* throw away the HSTS cache unless shared */
Curl_hsts_cleanup(&data->hsts);
+ /* flush all the entries */
+ curl_slist_free_all(data->state.hstslist);
+ data->state.hstslist = NULL;
+ }
+ else
+ /* detach from shared HSTS cache without freeing it */
+ data->hsts = NULL;
break;
#endif
#ifndef CURL_DISABLE_ALTSVC