diff options
author | eihrul <eihrul> | 2008-10-06 22:46:10 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2008-10-06 22:46:10 +0000 |
commit | ad60b6d451ac93e669bfeb72f4c482bb5554609c (patch) | |
tree | 43daacdf4a42257ef7c61defcd504a8f74aad94f | |
parent | b846c47521bcf2978bf9f6c3a39e0e8a324664be (diff) | |
download | enet-ad60b6d451ac93e669bfeb72f4c482bb5554609c.tar.gz enet-ad60b6d451ac93e669bfeb72f4c482bb5554609c.zip |
bind address bug fix
-rw-r--r-- | unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |