urldata: make hstslist only present in HSTS builds

Closes #21068
This commit is contained in:
Daniel Stenberg 2026-03-23 08:56:44 +01:00
parent e0327b2ebb
commit 8f0e0f9dc7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -693,8 +693,10 @@ struct UrlState {
curl_off_t recent_conn_id; /* The most recent connection used, might no
* longer exist */
struct dynbuf headerb; /* buffer to store headers in */
#ifndef CURL_DISABLE_HSTS
struct curl_slist *hstslist; /* list of HSTS files set by
curl_easy_setopt(HSTS) calls */
#endif
curl_off_t current_speed; /* the ProgressShow() function sets this,
bytes / second */