Changes between Initial Version and Version 1 of Ticket #2197, comment 1
- Timestamp:
- 06/01/21 05:26:38 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2197, comment 1
initial v1 3 3 {{{ 4 4 diff --git a/src/http/modules/ngx_http_upstream_keepalive_module.c b/src/http/modules/ngx_http_upstream_keepalive_module.c 5 index 3081919c.. 6264a3a91006445 index 3081919c..16056203 100644 6 6 --- a/src/http/modules/ngx_http_upstream_keepalive_module.c 7 7 +++ b/src/http/modules/ngx_http_upstream_keepalive_module.c … … 11 11 { 12 12 + ngx_str_t *elts = cf->args->elts; 13 + if (elts[0].len == sizeof("upstream") - 1 &&ngx_strncasecmp(elts[0].data, (u_char *)"upstream", sizeof("upstream") - 1)) return NULL;13 + if (elts[0].len != sizeof("upstream") - 1 || ngx_strncasecmp(elts[0].data, (u_char *)"upstream", sizeof("upstream") - 1)) return NULL; 14 14 ngx_http_upstream_keepalive_srv_conf_t *conf; 15 15 16 16 conf = ngx_pcalloc(cf->pool, 17 18 17 }}}