]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Set rend_query on exiting streams
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Apr 2004 02:10:43 +0000 (02:10 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Apr 2004 02:10:43 +0000 (02:10 +0000)
svn:r1551

src/or/connection_edge.c
src/or/rendservice.c

index a9cbafa87ca5f9c9e19dddee746136596e3f0e84..2f38646109b0e7ceee01a873edd572adaa6efd86 100644 (file)
@@ -1136,7 +1136,7 @@ static int connection_exit_begin_conn(cell_t *cell, circuit_t *circ) {
 
   if(circ->purpose == CIRCUIT_PURPOSE_S_REND_JOINED) {
     n_stream->address = tor_strdup("(rendezvous)");
-    strcpy(n_stream->rend_query, "yes"); /* XXX kludge */
+    strcpy(n_stream->rend_query, circ->rend_query);
     if(rend_service_set_connection_addr_port(n_stream, circ) < 0) {
       log_fn(LOG_WARN,"Didn't find rendezvous service (port %d)",n_stream->port);
       connection_mark_for_close(n_stream,0 /* XXX */);
index cee83efd023695de9be9a24b121c5f1bc4e1854f..234c35571de54ebfe41590bb74932476a42a76d5 100644 (file)
@@ -425,6 +425,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
   memcpy(launched->rend_pk_digest, circuit->rend_pk_digest,
          DIGEST_LEN);
   memcpy(launched->rend_cookie, r_cookie, REND_COOKIE_LEN);
+  strcpy(launched->rend_query, service->service_id);
   launched->build_state->pending_final_cpath = cpath =
     tor_malloc_zero(sizeof(crypt_path_t));
 
@@ -461,6 +462,7 @@ rend_service_launch_establish_intro(rend_service_t *service, char *nickname)
            nickname);
     return -1;
   }
+  strcpy(launched->rend_query, service->service_id);
   memcpy(launched->rend_pk_digest, service->pk_digest, DIGEST_LEN);
 
   return 0;