From 8f0e0f9dc70f55cf1a080c391858a8a01e6a25a8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Mar 2026 08:56:44 +0100 Subject: [PATCH] urldata: make hstslist only present in HSTS builds Closes #21068 --- lib/urldata.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/urldata.h b/lib/urldata.h index aba9e69393..16238e29b9 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -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 */