aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 214f0ef7c..3b06fd145 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -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;