diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-16 17:00:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-16 17:00:02 +0000 |
commit | fe856406bea6f759a38e25c5f64e133c2631d2a6 (patch) | |
tree | fac6570798bc9502cac2e37b22caf52dd1ecc218 /src/or/circuit.c | |
parent | 8a17d9e5d37dba660f35affc070cdf23bb22b1bd (diff) | |
download | tor-fe856406bea6f759a38e25c5f64e133c2631d2a6.tar.gz tor-fe856406bea6f759a38e25c5f64e133c2631d2a6.zip |
initial patches on patches
svn:r814
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r-- | src/or/circuit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index c371bfce7b..2190d1452f 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -86,6 +86,8 @@ void circuit_free(circuit_t *circ) { crypto_free_cipher_env(circ->n_crypto); if (circ->p_crypto) crypto_free_cipher_env(circ->p_crypto); + if(circ->build_state) + tor_free(circ->build_state->chosen_exit); tor_free(circ->build_state); circuit_free_cpath(circ->cpath); free(circ); @@ -659,7 +661,7 @@ int circuit_establish_circuit(void) { 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(); - + if (! circ->build_state) { log_fn(LOG_INFO,"Generating cpath length failed."); circuit_close(circ); |