Mercurial > hg > nginx
comparison src/http/modules/ngx_http_scgi_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 | 9e25a5380a21 |
children | 8b68d50090e4 |
comparison
equal
deleted
inserted
replaced
7320:696df3ac27ac | 7321:45e513c3540d |
---|---|
1855 scf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); | 1855 scf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); |
1856 if (scf->upstream.upstream == NULL) { | 1856 if (scf->upstream.upstream == NULL) { |
1857 return NGX_CONF_ERROR; | 1857 return NGX_CONF_ERROR; |
1858 } | 1858 } |
1859 | 1859 |
1860 if (clcf->name.data[clcf->name.len - 1] == '/') { | 1860 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { |
1861 clcf->auto_redirect = 1; | 1861 clcf->auto_redirect = 1; |
1862 } | 1862 } |
1863 | 1863 |
1864 return NGX_CONF_OK; | 1864 return NGX_CONF_OK; |
1865 } | 1865 } |