mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
channel_free() should be a no-op
This commit is contained in:
parent
e709fe320a
commit
64e6f6687c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user