diff options
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 2fe4466e53..690bfb92a7 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -763,7 +763,8 @@ channel_init_listener(channel_t *chan) void channel_free(channel_t *chan) { - tor_assert(chan); + if (!chan) return; + /* It must be closed or errored */ tor_assert(chan->state == CHANNEL_STATE_CLOSED || chan->state == CHANNEL_STATE_ERROR); |