mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 22:37:42 -04: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)
|
if (dirty_shutdown && bev_ssl->allow_dirty_shutdown)
|
||||||
event = BEV_EVENT_EOF;
|
event = BEV_EVENT_EOF;
|
||||||
|
|
||||||
_bufferevent_run_eventcb(&bev_ssl->bev.bev, event);
|
|
||||||
|
|
||||||
stop_reading(bev_ssl);
|
stop_reading(bev_ssl);
|
||||||
stop_writing(bev_ssl);
|
stop_writing(bev_ssl);
|
||||||
|
|
||||||
|
_bufferevent_run_eventcb(&bev_ssl->bev.bev, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user