Updated STS parsing to only accept preload when it appears without a value, ignoring tokens like preload=0.

This commit is contained in:
2026-02-04 11:39:20 -07:00
parent 3d8d3958ea
commit b9bc65e3c2

View File

@@ -377,7 +377,7 @@ sts_parse_value (const char *value, guint16 *port, guint64 *duration, gboolean *
}
else if (!g_ascii_strcasecmp (key, "preload"))
{
if (*has_preload)
if (*has_preload || val)
{
g_strfreev (tokens);
return FALSE;