Mercurial > hg > nginx
diff src/http/modules/ngx_http_memcached_module.c @ 7321:45e513c3540d
Fixed invalid access to location defined as an empty string.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 17 Jul 2018 15:30:43 +0300 |
parents | 06cf0c4b8618 |
children | 8b68d50090e4 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_memcached_module.c +++ b/src/http/modules/ngx_http_memcached_module.c @@ -707,7 +707,7 @@ ngx_http_memcached_pass(ngx_conf_t *cf, clcf->handler = ngx_http_memcached_handler; - if (clcf->name.data[clcf->name.len - 1] == '/') { + if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { clcf->auto_redirect = 1; }