hsts: use one malloc instead of two per entry

Closes #19861
This commit is contained in:
Daniel Stenberg 2025-12-07 12:24:33 +01:00
parent 65597f8fc9
commit 9ec63d8565
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 17 deletions

View file

@ -35,9 +35,9 @@ extern time_t deltatime;
struct stsentry {
struct Curl_llist_node node;
const char *host;
curl_off_t expires; /* the timestamp of this entry's expiry */
BIT(includeSubDomains);
char host[1];
};
/* The HSTS cache. Needs to be able to tailmatch hostnames. */