aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-01 20:33:29 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-01 20:33:29 +0000
commit05b99bcf7dad3be0c205d813269e21080a1d5373 (patch)
tree537dbb5621169425ada1c89cf09418b5461a5765 /src/or/circuit.c
parent103b8ead40102dd3f50db4f6b8b3353c783b6541 (diff)
downloadtor-05b99bcf7dad3be0c205d813269e21080a1d5373.tar
tor-05b99bcf7dad3be0c205d813269e21080a1d5373.tar.gz
alice chooses her rendezvous node from all running routers
and she can set preferences in her options svn:r1433
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index 584005e01..08acf187b 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -1057,9 +1057,6 @@ static int n_circuit_failures = 0;
/* Launch a new circuit and return a pointer to it. Return NULL if you failed. */
circuit_t *circuit_launch_new(uint8_t purpose, const char *exit_nickname) {
- if(!(options.SocksPort||options.RunTesting)) /* no need for circuits. */
- return NULL;
-
if(n_circuit_failures > 5) { /* too many failed circs in a row. don't try. */
// log_fn(LOG_INFO,"%d failures so far, not trying.",n_circuit_failures);
return NULL;
@@ -1086,11 +1083,11 @@ static circuit_t *circuit_establish_circuit(uint8_t purpose,
circ = circuit_new(0, NULL); /* sets circ->p_circ_id and circ->p_conn */
circ->state = CIRCUIT_STATE_OR_WAIT;
- circ->build_state = onion_new_cpath_build_state(exit_nickname);
+ circ->build_state = onion_new_cpath_build_state(purpose, exit_nickname);
circ->purpose = purpose;
if (! circ->build_state) {
- log_fn(LOG_INFO,"Generating cpath length failed.");
+ log_fn(LOG_INFO,"Generating cpath failed.");
circuit_mark_for_close(circ);
return NULL;
}