Signed-off-by: Pete Zaitcev <zait...@redhat.com>

---
 server/server.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9d8c7992b91f969930643dd9ea94b6ba4f8aa6eb
Author: Pete Zaitcev <zait...@yahoo.com>
Date:   Thu Jul 29 19:51:28 2010 -0600

    Byteswap port.

diff --git a/server/server.c b/server/server.c
index 7950693..a160716 100644
--- a/server/server.c
+++ b/server/server.c
@@ -1644,7 +1644,7 @@ static int net_open_any(void)
        addr4.sin_addr.s_addr = htonl(INADDR_ANY);
        /* If IPv6 worked, we must use the same port number for IPv4 */
        if (port)
-               addr4.sin_port = port;
+               addr4.sin_port = htons(port);
        fd4 = net_open_socket(AF_INET, SOCK_STREAM, 0, sizeof(addr4), &addr4,
                              false);
 
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to