mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
channel_free() should be a no-op
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user