aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_proxy_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/stream/ngx_stream_proxy_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/stream/ngx_stream_proxy_module.c')
-rw-r--r--src/stream/ngx_stream_proxy_module.c2
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;