Commit 07ff5c67 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bugfix on r10609: don't fail asserts when closing circuits

that were connected to an unkeyed connection.


svn:r10611
parent 2cd293dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,