From 2bf673a467ad412771419ea131cf2b3a9da740eb Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 13 Nov 2018 11:47:14 +0300 Subject: [PATCH] bev_async: do not initialize timeouts multiple times You cannot event_assign() event multiple times, this is UB, and most likely will fail. Fixes: af9b2a7ae0be11c79a909d212b1833a9379e4ba0 ("Initialize async bufferevent timeout CBs unconditionally") --- bufferevent_async.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bufferevent_async.c b/bufferevent_async.c index 1cd9e5c3..63ff7c37 100644 --- a/bufferevent_async.c +++ b/bufferevent_async.c @@ -589,7 +589,6 @@ bufferevent_async_set_connected_(struct bufferevent *bev) { struct bufferevent_async *bev_async = upcast(bev); bev_async->ok = 1; - bufferevent_init_generic_timeout_cbs_(bev); /* Now's a good time to consider reading/writing */ be_async_enable(bev, bev->enabled); }