diff options
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r-- | libvncclient/sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index efe7eb9..21047fb 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -305,7 +305,7 @@ FindFreeTcpPort(void) struct sockaddr_in addr; addr.sin_family = AF_INET; - addr.sin_addr.s_addr = INADDR_ANY; + addr.sin_addr.s_addr = htonl(INADDR_ANY); sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { @@ -339,7 +339,7 @@ ListenAtTcpPort(int port) addr.sin_family = AF_INET; addr.sin_port = htons(port); - addr.sin_addr.s_addr = INADDR_ANY; + addr.sin_addr.s_addr = htonl(INADDR_ANY); sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { |