protocol: fix use after free when dropping a connection

pull/130/head
moneromooo-monero 6 years ago
parent 84dd674cd0
commit 506472e0c6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -1738,9 +1738,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>

Loading…
Cancel
Save