mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
channel_free() should be a no-op
This commit is contained in:
parent
e709fe320a
commit
64e6f6687c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue