summaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index 2128b0924d..293f01070b 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -797,6 +797,7 @@ static int
channel_tls_write_packed_cell_method(channel_t *chan,
packed_cell_t *packed_cell)
{
+ tor_assert(chan);
channel_tls_t *tlschan = BASE_CHAN_TO_TLS(chan);
size_t cell_network_size = get_cell_network_size(chan->wide_circ_ids);
int written = 0;