From 5dff6e439db455fcf745dc24e88ace996f7d0aaa Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Fri, 6 Feb 2026 21:11:37 +0100 Subject: [PATCH] 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. --- src/proxy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);