mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-10 14:23:37 -05:00
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:
parent
d7cdd2c7f4
commit
5dff6e439d
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue