diff --git a/unix.c b/unix.c index 0bf794f..1ccdc4c 100644 --- a/unix.c +++ b/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);