aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_fastcgi_module.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2018-07-17 15:30:43 +0300
committerRuslan Ermilov <ru@nginx.com>2018-07-17 15:30:43 +0300
commit372b624627b3f943ffd1227ff8aacbae7b42880f (patch)
treeab103feabc7d78558c3d84c4a220273a68cc675e /src/http/modules/ngx_http_fastcgi_module.c
parentd5a27006e03174aa518f6c849d377a130a7c705c (diff)
downloadnginx-372b624627b3f943ffd1227ff8aacbae7b42880f.tar.gz
nginx-372b624627b3f943ffd1227ff8aacbae7b42880f.zip
Fixed invalid access to location defined as an empty string.
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c
index 3eec1b7dd..f73ff2137 100644
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -3501,7 +3501,7 @@ ngx_http_fastcgi_pass(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
clcf->handler = ngx_http_fastcgi_handler;
- if (clcf->name.data[clcf->name.len - 1] == '/') {
+ if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
clcf->auto_redirect = 1;
}