summaryrefslogtreecommitdiff
path: root/bufferevent_async.c
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2018-11-13 11:47:14 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2018-11-13 22:29:08 +0300
commit2bf673a467ad412771419ea131cf2b3a9da740eb (patch)
tree7ed47bf4fba2861b3b2af14901ecad1e7cf1079f /bufferevent_async.c
parente73875dfe2f2644c80823b06ebedb2c8fec1a845 (diff)
downloadlibevent-2bf673a467ad412771419ea131cf2b3a9da740eb.tar.gz
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")
Diffstat (limited to 'bufferevent_async.c')
-rw-r--r--bufferevent_async.c1
1 files changed, 0 insertions, 1 deletions
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);
}