diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-10-31 18:33:31 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-10-31 18:33:31 +0300 |
commit | 4e1720b0a21c6f8ad9f459630e270372387207ba (patch) | |
tree | 504a0bf437e8cb5928cf13f2cd628539152482d6 /src/http/modules/ngx_http_uwsgi_module.c | |
parent | df9b2b9011b89614b143808f983ace8ced0f8873 (diff) | |
download | nginx-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_uwsgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_uwsgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index b6ae0d809..47aeeedb4 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -764,7 +764,7 @@ ngx_http_uwsgi_eval(ngx_http_request_t *r, ngx_http_uwsgi_loc_conf_t * uwcf) 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; |