Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent

This commit is contained in:
Nick Mathewson 2010-11-29 22:14:54 -05:00
parent 0c4d54598b
commit 29f7623c82

View File

@ -525,10 +525,10 @@ conn_closed(struct bufferevent_openssl *bev_ssl, int errcode, int ret)
if (dirty_shutdown && bev_ssl->allow_dirty_shutdown)
event = BEV_EVENT_EOF;
_bufferevent_run_eventcb(&bev_ssl->bev.bev, event);
stop_reading(bev_ssl);
stop_writing(bev_ssl);
_bufferevent_run_eventcb(&bev_ssl->bev.bev, event);
}
static void