diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-11 01:17:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-11 01:17:42 +0000 |
commit | 7798e3d770b46a039fcf47c25c26a467eed4e0ce (patch) | |
tree | 5202d8cd23ecaa8d72ec2379d9d40aa5ca5ee67b /src/or/circuituse.c | |
parent | 6468e049be8e17d012068d2cdaa0272bcfd8a2a7 (diff) | |
download | tor-7798e3d770b46a039fcf47c25c26a467eed4e0ce.tar.gz tor-7798e3d770b46a039fcf47c25c26a467eed4e0ce.zip |
fix the stale pointer assert bug reported by joe magic
svn:r2436
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; |