]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Refrain from using SMARTLIST_DEL_CURRENT in retry_all_listeners
authorrl1987 <rl1987@sdf.lonestar.org>
Fri, 21 Sep 2018 16:23:19 +0000 (19:23 +0300)
committerrl1987 <rl1987@sdf.lonestar.org>
Wed, 3 Oct 2018 12:31:49 +0000 (15:31 +0300)
src/core/mainloop/connection.c

index d8326a5be83ccb22b203c3c6c774ac7325128bcd..5ef140b6b3f2c3ebf6f900afc60dfbbba83beab3 100644 (file)
@@ -2900,9 +2900,6 @@ retry_all_listeners(smartlist_t *new_conns, int close_all_noncontrol)
                        "(replaced by %s:%d)",
                conn_type_to_string(old_conn->type), old_conn->address,
                old_conn->port, new_conn->address, new_conn->port);
-
-    tor_free(r);
-    SMARTLIST_DEL_CURRENT(replacements, r);
   } SMARTLIST_FOREACH_END(r);
 #endif