From: Amaury Denoyelle Date: Fri, 6 Feb 2026 20:11:37 +0000 (+0100) Subject: BUG/MINOR: proxy: fix clang build error on "add backend" handler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dff6e439db455fcf745dc24e88ace996f7d0aaa;p=thirdparty%2Fhaproxy.git BUG/MINOR: proxy: fix clang build error on "add backend" handler This patch fixes the following compilation error : src/proxy.c:4954:12: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] 4954 | ha_notice(msg); | ^~~ No need to backport. --- diff --git a/src/proxy.c b/src/proxy.c index 4a5ce7e17..15a829187 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -4939,10 +4939,10 @@ static int cli_parse_add_backend(char **args, char *payload, struct appctx *appc thread_release(); if (unlikely(!be_supports_dynamic_srv(px, &msg))) - memprintf(&msg, "New backend registered (no support for dynamic servers: %s).\n", msg); + memprintf(&msg, "New backend registered (no support for dynamic servers: %s)", msg); else - memprintf(&msg, "New backend registered.\n"); - ha_notice(msg); + memprintf(&msg, "New backend registered"); + ha_notice("%s.\n", msg); ha_free(&msg); cli_umsg(appctx, LOG_INFO);