From 1071e9bc4a3a5d43daad163be5bc4388abf3a84f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 15 Mar 2011 17:12:11 +0100 Subject: [PATCH] src/tlsproxy.c: Add missing htonl() for INADDR_ANY. Not really necessary as INADDR_ANY is normally 0. --- src/tlsproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tlsproxy.c b/src/tlsproxy.c index a54a6e9..7a27f55 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -181,7 +181,7 @@ int main(int argc, char **argv) { memset(&server_in, 0, sizeof(server_in)); #ifdef USE_IPV4_ONLY server_in.sin_family = AF_INET; /* IPv4 only */ - server_in.sin_addr.s_addr = INADDR_ANY; /* bind to any address */ + server_in.sin_addr.s_addr = htonl(INADDR_ANY); /* bind to any address */ server_in.sin_port = htons((uint16_t)port); /* port to bind to */ #else server_in.sin6_family = AF_INET6; /* IPv6 (and IPv4) */ -- 2.45.2