aboutsummaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-08 20:02:42 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-08 20:02:42 -0700
commit17356fe7fd96af9285f8f9507b111373fd6fb891 (patch)
tree6a2141ae5db4ece0765b9c529a7937c6ed5dc933 /src/or/channeltls.c
parentbb92a2d7a8560e7028faad024c3307080449aea4 (diff)
downloadtor-17356fe7fd96af9285f8f9507b111373fd6fb891.tar.gz
tor-17356fe7fd96af9285f8f9507b111373fd6fb891.zip
Eliminate unnecessary SMARTLIST_DEL_CURRENT() invocations in channel.c, channeltls.c
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index 9fd7e6c339..883aef15f9 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -296,7 +296,6 @@ static void
channel_tls_close_method(channel_t *chan)
{
channel_tls_t *tlschan = BASE_CHAN_TO_TLS(chan);
- channel_t *tmp = NULL;
tor_assert(tlschan);
@@ -317,9 +316,7 @@ channel_tls_close_method(channel_t *chan)
if (chan->u.listener.incoming_list) {
SMARTLIST_FOREACH_BEGIN(chan->u.listener.incoming_list,
channel_t *, ichan) {
- tmp = ichan;
- SMARTLIST_DEL_CURRENT(chan->u.listener.incoming_list, ichan);
- channel_request_close(tmp);
+ channel_request_close(ichan);
} SMARTLIST_FOREACH_END(ichan);
smartlist_free(chan->u.listener.incoming_list);