]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move a paren 4 characters to the left; fix a bug in OutboundBindAddress
authorNick Mathewson <nickm@torproject.org>
Thu, 2 Sep 2004 23:25:23 +0000 (23:25 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 Sep 2004 23:25:23 +0000 (23:25 +0000)
svn:r2330

src/or/connection.c

index 8866ddbb48a7f00a9db569b5cb1ddbc40a7f485b..bb8e762e5824120c8dc1b8f22f36735afed302b4 100644 (file)
@@ -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;