mirror of
https://github.com/monero-project/monero.git
synced 2025-07-31 18:18:48 -04:00
Merge pull request #4906
506472e0
protocol: fix use after free when dropping a connection (moneromooo-monero)
This commit is contained in:
commit
5ed45acaec
1 changed files with 2 additions and 2 deletions
|
@ -1740,9 +1740,9 @@ skip:
|
||||||
if (add_fail)
|
if (add_fail)
|
||||||
m_p2p->add_host_fail(context.m_remote_address);
|
m_p2p->add_host_fail(context.m_remote_address);
|
||||||
|
|
||||||
m_p2p->drop_connection(context);
|
|
||||||
|
|
||||||
m_block_queue.flush_spans(context.m_connection_id, flush_all_spans);
|
m_block_queue.flush_spans(context.m_connection_id, flush_all_spans);
|
||||||
|
|
||||||
|
m_p2p->drop_connection(context);
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------------
|
||||||
template<class t_core>
|
template<class t_core>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue