diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-06-14 16:00:55 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-06-14 16:00:55 +0200 |
commit | 93526cdf0b9a9df1bcb69454060d24d819c15024 (patch) | |
tree | fc1e988967e27e4cd6258b895dbc581ef1f43cbe /src/or/connection_or.c | |
parent | 5b050a9b08fa81421d7e923ef04d06b569f5f742 (diff) | |
download | tor-93526cdf0b9a9df1bcb69454060d24d819c15024.tar.gz tor-93526cdf0b9a9df1bcb69454060d24d819c15024.zip |
Fixes small bugs.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index f111bc12d3..4ed4723fed 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -860,14 +860,17 @@ connection_or_connect(const tor_addr_t *_addr, uint16_t port, conn->_base.state = OR_CONN_STATE_CONNECTING; control_event_or_conn_status(conn, OR_CONN_EVENT_LAUNCHED, 0); + /* If we are using a proxy server, find it and use it. */ proxy_type = get_proxy_type(); r = get_proxy_addrport(proxy_type, &proxy_addr, &proxy_port, TO_CONN(conn)); if (r == 1) { /* proxy found. */ addr = proxy_addr; port = proxy_port; conn->_base.proxy_state = PROXY_INFANT; - } else if (r < 0) + } else if (r < 0) { + log_info(LD_PROTOCOL, "Failed on getting proxy addrport."); return NULL; + } switch (connection_connect(TO_CONN(conn), conn->_base.address, &addr, port, &socket_error)) { |