summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-22 01:01:15 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-22 01:01:15 +0000
commitf1ba4296c1af488bbbf9d74fcac94461793c910f (patch)
treec32d23137de0dba298d7ce604f9f7c13a2001131 /src/or/rendclient.c
parent35953edae073e69efe06f4ea313066b514b772a0 (diff)
downloadtor-f1ba4296c1af488bbbf9d74fcac94461793c910f.tar.gz
tor-f1ba4296c1af488bbbf9d74fcac94461793c910f.zip
clean up and refactor some more
svn:r3798
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 7f44bc24f6..612d3f6b23 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -226,14 +226,7 @@ rend_client_introduction_acked(circuit_t *circ,
log_fn(LOG_INFO, "Chose new intro point %s for %s (circ %d)",
nickname, circ->rend_query, circ->n_circ_id);
tor_free(nickname);
- circuit_append_new_exit(circ, r);
- circ->state = CIRCUIT_STATE_BUILDING;
- if (circuit_send_next_onion_skin(circ)<0) {
- log_fn(LOG_WARN, "Couldn't extend circuit to new point '%s'.",
- circ->build_state->chosen_exit_name);
- circuit_mark_for_close(circ);
- return -1;
- }
+ return circuit_extend_to_new_exit(circ, r);
}
}
return 0;