aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-02 23:25:23 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-02 23:25:23 +0000
commit9836ccda8c12f4127afaba69f31187fb42320cfe (patch)
tree50fdcb0a1b62b49590335d1fe5bc7186bf951afb /src/or/connection.c
parentecf414f05e5f2a5916dd8a8ba31616f1851e76d3 (diff)
downloadtor-9836ccda8c12f4127afaba69f31187fb42320cfe.tar
tor-9836ccda8c12f4127afaba69f31187fb42320cfe.tar.gz
Move a paren 4 characters to the left; fix a bug in OutboundBindAddress
svn:r2330
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 8866ddbb4..bb8e762e5 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -493,7 +493,7 @@ int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_
log_fn(LOG_WARN,"Outbound bind address '%s' didn't parse. Ignoring.",
options.OutboundBindAddress);
} else {
- if(bind(s, (struct sockaddr*)&ext_addr, sizeof(ext_addr) < 0)) {
+ if(bind(s, (struct sockaddr*)&ext_addr, sizeof(ext_addr)) < 0) {
log_fn(LOG_WARN,"Error binding network socket: %s",
tor_socket_strerror(tor_socket_errno(s)));
return -1;