From 07622404e7e755b7eccd8006dfc5823d360d314d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Wed, 30 Oct 2024 13:57:47 +0100 Subject: [PATCH] Join two if branches with the same condition --- native/common/common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/native/common/common.c b/native/common/common.c index 0de3d52f..9f572dcf 100644 --- a/native/common/common.c +++ b/native/common/common.c @@ -578,8 +578,7 @@ const char *get_route_balancer(request_rec *r, const proxy_server_conf *conf, co if (nodes == NULL) { continue; /* we can't serve context/host for the request with this balancer */ } - } - if (route && *route) { + const char *domain = NULL; ap_log_error(APLOG_MARK, APLOG_TRACE4, 0, r->server, "cluster: Found route %s", route); if (find_nodedomain(r, &domain, route, &balancer->s->name[BALANCER_PREFIX_LENGTH], node_table) ==