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/stream/ngx_stream_proxy_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/stream/ngx_stream_proxy_module.c')
-rw-r--r-- | src/stream/ngx_stream_proxy_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ngx_stream_proxy_module.c b/src/stream/ngx_stream_proxy_module.c index 7772eb6c6..79e84d1b6 100644 --- a/src/stream/ngx_stream_proxy_module.c +++ b/src/stream/ngx_stream_proxy_module.c @@ -578,7 +578,7 @@ ngx_stream_proxy_eval(ngx_stream_session_t *s, 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; |