diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 2caf79654b..165a5fc6fa 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -516,10 +516,10 @@ circuit_about_to_close_connection(connection_t *conn) SMARTLIST_FOREACH(circs, circuit_t *, circ, { if (circ->n_conn == conn) /* it's closing in front of us */ - circuit_set_circid_orconn(circ, 0, NULL, P_CONN_CHANGED); + circuit_set_circid_orconn(circ, 0, NULL, N_CONN_CHANGED); if (circ->p_conn == conn) /* it's closing behind us */ - circuit_set_circid_orconn(circ, 0, NULL, N_CONN_CHANGED); + circuit_set_circid_orconn(circ, 0, NULL, P_CONN_CHANGED); circuit_mark_for_close(circ); }); smartlist_free(circs);