From eae5a209d384cf065c314262ce3af46ba8669796 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 4 Feb 2026 11:58:13 -0700 Subject: [PATCH] Updated STS parsing to ignore preload tokens that include a value while preserving duplicate-preload rejection for valid tokens. --- src/common/sts.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/sts.c b/src/common/sts.c index 17ea0823..82c57ed2 100644 --- a/src/common/sts.c +++ b/src/common/sts.c @@ -377,7 +377,12 @@ sts_parse_value (const char *value, guint16 *port, guint64 *duration, gboolean * } else if (!g_ascii_strcasecmp (key, "preload")) { - if (*has_preload || val) + if (val) + { + continue; + } + + if (*has_preload) { g_strfreev (tokens); return FALSE;