From: Willy Tarreau Date: Fri, 26 Jun 2026 09:10:43 +0000 (+0200) Subject: CLEANUP: trace: remove backend retrieval attempt from conn->target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d071a736c4cfdb05aa5c2a4fbf8db4dae75c696e;p=thirdparty%2Fhaproxy.git CLEANUP: trace: remove backend retrieval attempt from conn->target Since we may no longer see conn->target point to the proxy, let's drop the retrieval attempt for a backend there in __trace_enabled(). --- diff --git a/src/trace.c b/src/trace.c index 6060d4df2..23636966f 100644 --- a/src/trace.c +++ b/src/trace.c @@ -181,9 +181,6 @@ int __trace_enabled(enum trace_level level, uint64_t mask, struct trace_source * if (ctx.srv && !ctx.be) ctx.be = ctx.srv->proxy; - if (!ctx.be && ctx.conn) - ctx.be = objt_proxy(ctx.conn->target); - /* TODO: add handling of filters here, return if no match (not even update states) */ /* check if we need to start the trace now */