mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Fix allocation error for IOCP listeners. Probably harmless, since struct event is big
This commit is contained in:
parent
127d4f2195
commit
481ef92086
@ -743,7 +743,7 @@ evconnlistener_new_async(struct event_base *base,
|
|||||||
event_sock_warn(fd, "getsockname");
|
event_sock_warn(fd, "getsockname");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
lev = mm_calloc(1, sizeof(struct evconnlistener_event));
|
lev = mm_calloc(1, sizeof(struct evconnlistener_iocp));
|
||||||
if (!lev) {
|
if (!lev) {
|
||||||
event_warn("calloc");
|
event_warn("calloc");
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user