diff options
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index e52835ef03..70eb0363f2 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -333,6 +333,8 @@ void circuit_detach_stream(circuit_t *circ, connection_t *conn) { tor_assert(circ && conn); + conn->cpath_layer = NULL; /* make sure we don't keep a stale pointer */ + if(conn == circ->p_streams) { circ->p_streams = conn->next_stream; return; |