From d787755d50c96b8f0fc1c5c2df62e8ea3bd9031f Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 24 Mar 2026 15:12:05 +0400 Subject: Upstream keepalive: fixed parameter parsing. --- src/http/modules/ngx_http_upstream_keepalive_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_upstream_keepalive_module.c b/src/http/modules/ngx_http_upstream_keepalive_module.c index 121023e30..c605e98ad 100644 --- a/src/http/modules/ngx_http_upstream_keepalive_module.c +++ b/src/http/modules/ngx_http_upstream_keepalive_module.c @@ -607,7 +607,7 @@ ngx_http_upstream_keepalive(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) kcf->max_cached = n; if (cf->args->nelts == 3) { - if (ngx_strncmp(value[2].data, "local", 5) == 0) { + if (ngx_strcmp(value[2].data, "local") == 0) { kcf->local = 1; } else { -- cgit