diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-03-05 13:54:45 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-03-05 13:54:45 -0500 |
commit | c20e44df4e68c80820f84b43c1405701111068a6 (patch) | |
tree | 82b662c2abe4e8cbf5bf89857bbd1458ff70e669 /contrib | |
parent | Merge pull request #7335 (diff) | |
parent | async_protocol_handler_config: remove connection correctly (diff) | |
download | monero-c20e44df4e68c80820f84b43c1405701111068a6.tar.xz |
Merge pull request #7389
80125a2 async_protocol_handler_config: remove connection correctly (anon)
1b51d39 async_protocol_handler_config: add segfault demo (anon)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 2 |
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 635876589..f6b73a2d5 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -787,7 +787,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); } |