Selaa lähdekoodia

bugfix on r10609: don't fail asserts when closing circuits
that were connected to an unkeyed connection.


svn:r10611

Roger Dingledine 18 vuotta sitten
vanhempi
commit
07ff5c6785
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/or/circuitbuild.c

+ 2 - 0
src/or/circuitbuild.c

@@ -424,6 +424,8 @@ circuit_n_conn_done(or_connection_t *or_conn, int status)
         if (circ->n_addr != or_conn->_base.addr ||
             circ->n_port != or_conn->_base.port)
           continue;
+        /* now teach circ the right identity_digest */
+        memcpy(circ->n_conn_id_digest, or_conn->identity_digest, DIGEST_LEN);
       } else {
         /* We expected a key. See if it's the right one. */
         if (memcmp(or_conn->identity_digest,