diff options
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 7f10ee6db1..1996cccced 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -394,7 +394,7 @@ circuit_t * circuit_get_by_circid_orconn(uint16_t circ_id, connection_t *conn) { circuit_t *circ = circuit_get_by_circid_orconn_impl(circ_id, conn); - if (circ->marked_for_close) + if (!circ || circ->marked_for_close) return NULL; else return circ; |