List:Commits« Previous MessageNext Message »
From:Vladislav Vaintroub Date:August 10 2009 10:13pm
Subject:bzr commit into mysql branch (vvaintroub:2853)
View as plain text  
#At file:///H:/bzr/mysql-azalea-bugfixing/ based on revid:vvaintroub@stripped

 2853 Vladislav Vaintroub	2009-08-11 [merge]
      merge

    modified:
      sql/hostname.cc
      vio/viosocket.c
=== modified file 'sql/hostname.cc'
--- a/sql/hostname.cc	2009-08-10 04:17:39 +0000
+++ b/sql/hostname.cc	2009-08-10 12:31:13 +0000
@@ -223,7 +223,7 @@ static inline bool is_ip_loopback(const 
     {
       /* Check for IPv4 127.0.0.1. */
       struct in_addr *ip4= &((struct sockaddr_in *) ip)->sin_addr;
-      return ip4->s_addr == INADDR_LOOPBACK;
+      return ntohl(ip4->s_addr) == INADDR_LOOPBACK;
     }
 
 #ifdef HAVE_IPV6

=== modified file 'vio/viosocket.c'
--- a/vio/viosocket.c	2009-08-10 04:17:39 +0000
+++ b/vio/viosocket.c	2009-08-10 12:31:13 +0000
@@ -457,7 +457,7 @@ my_bool vio_peer_addr(Vio *vio, char *ip
     vio->remote.ss_family= AF_INET;
     vio->addrLen= sizeof (struct sockaddr_in);
 
-    ip4->s_addr= INADDR_LOOPBACK;
+    ip4->s_addr= htonl(INADDR_LOOPBACK);
 
     /* Initialize ip_buffer and port. */
 


Attachment: [text/bzr-bundle] bzr/vvaintroub@mysql.com-20090810221320-rxaj1gc1kbrbr6up.bundle
Thread
bzr commit into mysql branch (vvaintroub:2853)Vladislav Vaintroub11 Aug