From 9ebb00e673a9dea0302d8fb8605bc47ae6d4af22 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 15 May 2026 08:36:53 +0000 Subject: [PATCH] CLEANUP: proxy: fix duplicate declaration of cli_find_frontend in proxy.h The function cli_find_frontend was declared twice identically at lines 98-99 of include/haproxy/proxy.h. The second declaration should have been for cli_find_backend, which is defined in src/proxy.c and used in several places but was missing from the header's exported symbols. This is a simple copy-paste mistake where line 99 duplicated line 98 verbatim instead of declaring cli_find_backend. --- include/haproxy/proxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/proxy.h b/include/haproxy/proxy.h index 7a8a15519..f5f29f96f 100644 --- a/include/haproxy/proxy.h +++ b/include/haproxy/proxy.h @@ -96,7 +96,7 @@ void proxy_capture_error(struct proxy *proxy, int is_back, void (*show)(struct buffer *, const struct error_snapshot *)); void proxy_adjust_all_maxconn(void); struct proxy *cli_find_frontend(struct appctx *appctx, const char *arg); -struct proxy *cli_find_frontend(struct appctx *appctx, const char *arg); +struct proxy *cli_find_backend(struct appctx *appctx, const char *arg); int resolve_stick_rule(struct proxy *curproxy, struct sticking_rule *mrule); void free_stick_rules(struct list *rules); void free_server_rules(struct list *srules);