blob: 69ab898efea81a6123e52f9b0f7b6637d90004ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Index: src/util.c
===================================================================
--- src/util.c (revision 2462)
+++ src/util.c (revision 2463)
@@ -982,7 +982,7 @@ TcpGetListenPort(struct u_addr *addr, in_port_t port,
/* Make socket available for connections */
- if (listen(sock, -1) < 0)
+ if (listen(sock, INT_MAX) < 0)
{
Perror("%s: listen", __FUNCTION__);
(void) close(sock);
|