mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
r8776@Kushana: nickm | 2006-09-11 22:49:53 -0400
Avoid crash when telling controller stream-status and a stream is detached. Fixes bug 334. Backport candidate. svn:r8370
This commit is contained in:
parent
8170f1e037
commit
1852f503cf
@ -1453,7 +1453,7 @@ handle_getinfo_helper(const char *question, char **answer)
|
||||
continue;
|
||||
}
|
||||
circ = circuit_get_by_edge_conn(conn);
|
||||
if (CIRCUIT_IS_ORIGIN(circ))
|
||||
if (circ && CIRCUIT_IS_ORIGIN(circ))
|
||||
origin_circ = TO_ORIGIN_CIRCUIT(circ);
|
||||
write_stream_target_to_buf(conn, buf, sizeof(buf));
|
||||
slen = strlen(buf)+strlen(state)+32;
|
||||
|
Loading…
Reference in New Issue
Block a user