aboutsummaryrefslogtreecommitdiffhomepage
path: root/unix.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-05-31 08:04:23 +0000
committereihrul <eihrul>2007-05-31 08:04:23 +0000
commit6a6e61b4bd85cb1566a3f0f11896128046fb410d (patch)
treea920d81a35341102366d4a3fc3cbe2b59bc1b398 /unix.c
parent050cf18c9644ecf797fd856ee9e49dd4124f4899 (diff)
downloadenet-6a6e61b4bd85cb1566a3f0f11896128046fb410d.tar.gz
enet-6a6e61b4bd85cb1566a3f0f11896128046fb410d.zip
*** empty log message ***
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index b0e6ee2..8f157b2 100644
--- a/unix.c
+++ b/unix.c
@@ -193,6 +193,7 @@ enet_socket_create (ENetSocketType type, const ENetAddress * address)
(struct sockaddr *) & sin,
sizeof (struct sockaddr_in)) == -1 ||
(type == ENET_SOCKET_TYPE_STREAM &&
+ address -> port != ENET_PORT_ANY &&
listen (newSocket, SOMAXCONN) == -1))
{
close (newSocket);