From: Roman Arutyunyan Date: Tue, 24 Mar 2026 11:12:05 +0000 (+0400) Subject: Upstream keepalive: fixed parameter parsing. X-Git-Tag: release-1.29.7~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=d787755d50c96b8f0fc1c5c2df62e8ea3bd9031f;p=nginx.git Upstream keepalive: fixed parameter parsing. --- 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 {