]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix bind line parsing to use stripped bind_line for SSL suffix
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 9 Feb 2026 11:54:04 +0000 (11:54 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 9 Feb 2026 11:54:04 +0000 (11:54 +0000)
When parsing bind lines with " ssl" suffix, the suffix was stripped from
cnf->bind_line but the original unstripped str was passed to
rspamd_parse_host_port_priority, causing parse failures.

src/libserver/cfg_utils.cxx

index edee9cb8985dbd740c9ab2b120a92a38809688f8..a5871a87cc6cb11d65cdf40a4c36440dda32b31f 100644 (file)
@@ -221,7 +221,7 @@ rspamd_parse_bind_line(struct rspamd_config *cfg,
                }
        }
        else {
-               if (rspamd_parse_host_port_priority(str, &cnf->addrs,
+               if (rspamd_parse_host_port_priority(cnf->bind_line, &cnf->addrs,
                                                                                        nullptr, &cnf->name, DEFAULT_BIND_PORT, TRUE, cfg->cfg_pool) == RSPAMD_PARSE_ADDR_FAIL) {
                        msg_err_config("cannot parse bind line: %s", str);
                        ret = FALSE;