summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-21 07:43:12 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-21 07:43:12 +0000
commit6a516dfdd38c05c7e535717cae766250a05b2471 (patch)
treece9ebbaa29598afd54b560e1ca5d932d56d4c8dd /src/or/rendclient.c
parent67ac11c2fab6f1b6ce561fcf783defca91fe8caf (diff)
downloadtor-6a516dfdd38c05c7e535717cae766250a05b2471.tar.gz
tor-6a516dfdd38c05c7e535717cae766250a05b2471.zip
be more greedy about filling up all relay cells.
this may have some bugs in it still. and it may end up not being what we want to do. svn:r2928
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index d4bd9f6bfe..8c7519853b 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -369,10 +369,10 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, size_t requ
}
/** Find all the apconns in state AP_CONN_STATE_RENDDESC_WAIT that
- * are waiting on query. If success==1, move them to the next state.
- * If success==0, fail them.
+ * are waiting on query. If status==1, move them to the next state.
+ * If status==0, fail them.
*/
-void rend_client_desc_fetched(char *query, int success) {
+void rend_client_desc_fetched(char *query, int status) {
connection_t **carray;
connection_t *conn;
int n, i;
@@ -388,7 +388,7 @@ void rend_client_desc_fetched(char *query, int success) {
if (rend_cmp_service_ids(conn->rend_query, query))
continue;
/* great, this guy was waiting */
- if(success ||
+ if(status!=0 ||
rend_cache_lookup_entry(conn->rend_query, &entry) == 1) {
/* either this fetch worked, or it failed but there was a
* valid entry from before which we should reuse */