aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2021-02-19 22:27:28 +0000
committeranon <anon [at] nowhere>2021-02-19 22:27:28 +0000
commit7fd140e4f7830061ba66707c63ae141acc7933e6 (patch)
tree5cdf41898d8f72d914fe827cc605f3db3d388137
parentasync_protocol_handler_config: add segfault demo (diff)
downloadmonero-7fd140e4f7830061ba66707c63ae141acc7933e6.tar.xz
async_protocol_handler_config: remove connection correctly
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h
index debe22208..762537e3f 100644
--- a/contrib/epee/include/net/levin_protocol_handler_async.h
+++ b/contrib/epee/include/net/levin_protocol_handler_async.h
@@ -818,7 +818,7 @@ void async_protocol_handler_config<t_connection_context>::delete_connections(siz
{
auto i = connections.end() - 1;
async_protocol_handler<t_connection_context> *conn = m_connects.at(*i);
- del_connection(conn);
+ m_connects.erase(*i);
conn->close();
connections.erase(i);
}