summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conn_connect.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-04-08 15:15:24 +0300
committerValentin Bartenev <vbart@nginx.com>2020-04-08 15:15:24 +0300
commit555d595f38801685f95f140f85b20f5dcfaa49cd (patch)
treebd0e17520d0ed6d3cb1a40195181949bd5464619 /src/nxt_conn_connect.c
parent27c1e268563da002e57f34032499efd7543b8b9d (diff)
downloadunit-555d595f38801685f95f140f85b20f5dcfaa49cd.tar.gz
unit-555d595f38801685f95f140f85b20f5dcfaa49cd.tar.bz2
Removed unused code related to testing of address binding.
Diffstat (limited to '')
-rw-r--r--src/nxt_conn_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_conn_connect.c b/src/nxt_conn_connect.c
index d045853f..220fb5f9 100644
--- a/src/nxt_conn_connect.c
+++ b/src/nxt_conn_connect.c
@@ -108,7 +108,7 @@ nxt_conn_socket(nxt_task_t *task, nxt_conn_t *c)
c->write_timer.task = task;
if (c->local != NULL) {
- if (nxt_slow_path(nxt_socket_bind(task, s, c->local, 0) != NXT_OK)) {
+ if (nxt_slow_path(nxt_socket_bind(task, s, c->local) != NXT_OK)) {
nxt_socket_close(task, s);
return NXT_ERROR;
}