Skip to content

Commit

Permalink
Fix condition in find_node_context_host
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Aug 21, 2024
1 parent bb27794 commit f95e024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ node_context *find_node_context_host(request_rec *r, const proxy_balancer *balan
if (node == NULL) {
continue;
}
if (strlen(balancer->s->name) > BALANCER_PREFIX_LENGTH &&
if (strlen(balancer->s->name) <= BALANCER_PREFIX_LENGTH ||
strcasecmp(&balancer->s->name[BALANCER_PREFIX_LENGTH], node->mess.balancer) != 0) {
continue;
}
Expand Down

0 comments on commit f95e024

Please sign in to comment.