mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
protocol: fix use after free when dropping a connection
This commit is contained in:
parent
84dd674cd0
commit
506472e0c6
@ -1738,9 +1738,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…
Reference in New Issue
Block a user