mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Possible crash fix when freeing an underlying bufferevent of an openssl bufferevent
This commit is contained in:
parent
0c4d54598b
commit
29f7623c82
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user