diff options
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index a1dd0532fe..2e19069b7c 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -599,7 +599,7 @@ get_stream(const char *id) if (!ok) return NULL; conn = connection_get_by_global_id(n_id); - if (conn->type != CONN_TYPE_AP) + if (!conn || conn->type != CONN_TYPE_AP) return NULL; return conn; } |