summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-10-01 06:41:13 +0000
committerRoger Dingledine <arma@torproject.org>2006-10-01 06:41:13 +0000
commit4096e577c51a6eae88ab26cb4931998b0486e678 (patch)
treefa01f2a89a28aab3ef1828604e33b012a04d6db7 /src/or/relay.c
parent96a4cb1dfa4d65c6c57261f038aa5bdf6e776ac2 (diff)
downloadtor-4096e577c51a6eae88ab26cb4931998b0486e678.tar.gz
tor-4096e577c51a6eae88ab26cb4931998b0486e678.zip
if we fail to build a circuit to an intended enclave, and it's
not mandatory that we use that enclave, stop wanting it. svn:r8559
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 631f0e9d62..36cff71297 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -721,7 +721,7 @@ connection_edge_process_end_not_open(
if (conn->_base.chosen_exit_optional) {
/* stop wanting a specific exit */
conn->_base.chosen_exit_optional = 0;
- tor_free(conn->chosen_exit_name);
+ tor_free(conn->chosen_exit_name); /* clears it */
}
if (connection_ap_detach_retriable(conn, circ) >= 0)
return 0;
@@ -745,7 +745,7 @@ connection_edge_process_end_not_open(
if (conn->_base.chosen_exit_optional) {
/* stop wanting a specific exit */
conn->_base.chosen_exit_optional = 0;
- tor_free(conn->chosen_exit_name);
+ tor_free(conn->chosen_exit_name); /* clears it */
}
if (connection_ap_detach_retriable(conn, circ) >= 0)
return 0;
@@ -770,7 +770,7 @@ connection_edge_process_end_not_open(
if (conn->_base.chosen_exit_optional) {
/* stop wanting a specific exit */
conn->_base.chosen_exit_optional = 0;
- tor_free(conn->chosen_exit_name);
+ tor_free(conn->chosen_exit_name); /* clears it */
}
if (connection_ap_detach_retriable(conn, circ) >= 0)
return 0;