mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
Disallow backlog==0 in evconnlistener_new_bind().
svn:r1300
This commit is contained in:
parent
8997f234f2
commit
7e3ea82ee6
@ -94,6 +94,8 @@ evconnlistener_new_bind(struct event_base *base, evconnlistener_cb cb, void *ptr
|
||||
int on = 1;
|
||||
int family = sa ? sa->sa_family : AF_UNSPEC;
|
||||
|
||||
if (backlog == 0)
|
||||
return NULL;
|
||||
fd = socket(family, SOCK_STREAM, 0);
|
||||
if (fd == -1)
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user