aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_scgi_module.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-10-31 18:33:31 +0300
committerRuslan Ermilov <ru@nginx.com>2016-10-31 18:33:31 +0300
commit4e1720b0a21c6f8ad9f459630e270372387207ba (patch)
tree504a0bf437e8cb5928cf13f2cd628539152482d6 /src/http/modules/ngx_http_scgi_module.c
parentdf9b2b9011b89614b143808f983ace8ced0f8873 (diff)
downloadnginx-4e1720b0a21c6f8ad9f459630e270372387207ba.tar.gz
nginx-4e1720b0a21c6f8ad9f459630e270372387207ba.zip
Upstream: removed unnecessary condition in proxy_eval() and friends.
The first condition added in d3454e719bbb should have just replaced the second one.
Diffstat (limited to 'src/http/modules/ngx_http_scgi_module.c')
-rw-r--r--src/http/modules/ngx_http_scgi_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c
index 117143468..ee9036c3e 100644
--- a/src/http/modules/ngx_http_scgi_module.c
+++ b/src/http/modules/ngx_http_scgi_module.c
@@ -562,7 +562,7 @@ ngx_http_scgi_eval(ngx_http_request_t *r, ngx_http_scgi_loc_conf_t * scf)
return NGX_ERROR;
}
- if (url.addrs && url.addrs[0].sockaddr) {
+ if (url.addrs) {
u->resolved->sockaddr = url.addrs[0].sockaddr;
u->resolved->socklen = url.addrs[0].socklen;
u->resolved->naddrs = 1;