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.
This commit is contained in:
Amaury Denoyelle 2026-02-06 21:11:37 +01:00
parent d7cdd2c7f4
commit 5dff6e439d

View file

@ -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);