diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-09 00:56:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-09 00:56:53 -0500 |
commit | 076654ce8423d2b8ab7285b22c13d4002942bd8b (patch) | |
tree | 2e4eef960efa18ca461a8f846acd8f921746441a /src/or/channeltls.c | |
parent | 8e8c0674c4729a6aa39ded658e800baa654fe289 (diff) | |
download | tor-076654ce8423d2b8ab7285b22c13d4002942bd8b.tar.gz tor-076654ce8423d2b8ab7285b22c13d4002942bd8b.zip |
Replace magic constants for wide_circ_ids with inline function calls
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r-- | src/or/channeltls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c index ed56e1ad19..a699d3c7d1 100644 --- a/src/or/channeltls.c +++ b/src/or/channeltls.c @@ -600,8 +600,7 @@ channel_tls_write_packed_cell_method(channel_t *chan, packed_cell_t *packed_cell) { channel_tls_t *tlschan = BASE_CHAN_TO_TLS(chan); - size_t cell_network_size = (chan->wide_circ_ids) ? - CELL_MAX_NETWORK_SIZE : CELL_MAX_NETWORK_SIZE - 2; + size_t cell_network_size = get_cell_network_size(chan->wide_circ_ids); tor_assert(tlschan); tor_assert(packed_cell); |