summaryrefslogtreecommitdiff
path: root/bufferevent_async.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-12 13:25:02 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-12 13:25:02 -0400
commitaf9b2a7ae0be11c79a909d212b1833a9379e4ba0 (patch)
tree75ee042813399d285f9375d0be1dd0f594383a40 /bufferevent_async.c
parent462e6b609b280d0c02d3c04e5f6998caf613b571 (diff)
downloadlibevent-af9b2a7ae0be11c79a909d212b1833a9379e4ba0.tar.gz
Initialize async bufferevent timeout CBs unconditionally
This is a fix for bug #93 on nmathewson/Libevent.
Diffstat (limited to 'bufferevent_async.c')
-rw-r--r--bufferevent_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bufferevent_async.c b/bufferevent_async.c
index 137ad247..f32573e4 100644
--- a/bufferevent_async.c
+++ b/bufferevent_async.c
@@ -564,9 +564,9 @@ bufferevent_async_new_(struct event_base *base,
event_overlapped_init_(&bev_a->read_overlapped, read_complete);
event_overlapped_init_(&bev_a->write_overlapped, write_complete);
+ bufferevent_init_generic_timeout_cbs_(bev);
+
bev_a->ok = fd >= 0;
- if (bev_a->ok)
- bufferevent_init_generic_timeout_cbs_(bev);
return bev;
err: