mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Remember to initialize timeout events for bufferevent_async
Fixes segfaults in unit tests.
This commit is contained in:
parent
170ffd2b1d
commit
de1f5d6d87
@ -431,6 +431,8 @@ bufferevent_async_new(struct event_base *base,
|
||||
event_overlapped_init(&bev_a->write_overlapped, write_complete);
|
||||
|
||||
bev_a->ok = fd >= 0;
|
||||
if (bev_a->ok)
|
||||
_bufferevent_init_generic_timeout_cbs(bev);
|
||||
|
||||
return bev;
|
||||
err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user