Merge pull request #4906

506472e0 protocol: fix use after free when dropping a connection (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-12-04 17:33:52 +02:00
commit 5ed45acaec
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1740,9 +1740,9 @@ skip:
if (add_fail)
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_p2p->drop_connection(context);
}
//------------------------------------------------------------------------------------------------------------------------
template<class t_core>