]> git.kaiwu.me - nginx.git/commitdiff
Upstream keepalive: fixed parameter parsing.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 24 Mar 2026 11:12:05 +0000 (15:12 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 24 Mar 2026 11:38:16 +0000 (15:38 +0400)
src/http/modules/ngx_http_upstream_keepalive_module.c

index 121023e30be3112debc7876d047070104cbd2c73..c605e98ade7a99f682ae00cce4d35f4acb07c7a9 100644 (file)
@@ -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 {