From 0f76dc641df11efbb1492ea973217a5b94c58e41 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 6 Oct 2008 22:47:14 +0000 Subject: [PATCH] bind address bug fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2857 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/unix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/enet/unix.c b/source/enet/unix.c index 0bf794f8..1ccdc4c8 100755 --- a/source/enet/unix.c +++ b/source/enet/unix.c @@ -159,6 +159,8 @@ enet_socket_bind (ENetSocket socket, const ENetAddress * address) memset (& sin, 0, sizeof (struct sockaddr_in)); + sin.sin_family = AF_INET; + if (address != NULL) { sin.sin_port = ENET_HOST_TO_NET_16 (address -> port);