Ignore all bufferevent events on a marked connection

Bug 4697; fix on 0.2.3.1-alpha
This commit is contained in:
Nick Mathewson
2011-12-17 14:06:10 -05:00
parent 37504b5efa
commit e5e50d86ca
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -2960,6 +2960,9 @@ connection_handle_event_cb(struct bufferevent *bufev, short event, void *arg)
{
connection_t *conn = arg;
(void) bufev;
if (conn->marked_for_close)
return;
if (event & BEV_EVENT_CONNECTED) {
tor_assert(connection_state_is_connecting(conn));
if (connection_finished_connecting(conn)<0)