Permalink
Browse files

Merge pull request #4906

506472e protocol: fix use after free when dropping a connection (moneromooo-monero)
  • Loading branch information...
fluffypony committed Dec 4, 2018
2 parents 36219fe + 506472e commit 5ed45acaeccaf861b3833a422c8d6fb889915412
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -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>

0 comments on commit 5ed45ac

Please sign in to comment.