]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
mark a rend circ dirty when you attach to it
authorRoger Dingledine <arma@torproject.org>
Wed, 7 Apr 2004 19:14:45 +0000 (19:14 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 7 Apr 2004 19:14:45 +0000 (19:14 +0000)
svn:r1518

src/or/connection_edge.c

index a543e22e709a0c32227407244b12f58dd53ed983..23c9c9d5d35e039b7f992212c1f9c915cc88de22 100644 (file)
@@ -915,11 +915,14 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) {
          rendcirc->purpose == CIRCUIT_PURPOSE_C_REND_READY) {
         /* then we know !pending_final_cpath, from above */
         log_fn(LOG_INFO,"intro and rend circs are both ready. introducing.");
+        /* this call marks introcirc for close */
         if(rend_client_send_introduction(introcirc, rendcirc) < 0) {
           return -1;
         }
         /* now attach conn to rendcirc */
         link_apconn_to_circ(conn, rendcirc);
+        if(!rendcirc->timestamp_dirty)
+          rendcirc->timestamp_dirty = time(NULL);
         return 1;
       }
     }