Author: mturk
Date: Tue Apr  8 07:31:31 2014
New Revision: 1585654

URL: http://svn.apache.org/r1585654
Log:
Be more specific with getaddrinfo call

Modified:
    tomcat/jk/trunk/native/common/jk_connect.c

Modified: tomcat/jk/trunk/native/common/jk_connect.c
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_connect.c?rev=1585654&r1=1585653&r2=1585654&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_connect.c (original)
+++ tomcat/jk/trunk/native/common/jk_connect.c Tue Apr  8 07:31:31 2014
@@ -433,6 +433,7 @@ int jk_resolve(const char *host, int por
 
         memset(&hints, 0, sizeof(hints));
         hints.ai_socktype = SOCK_STREAM;
+        hints.ai_protocol = IPPROTO_TCP;
 #if JK_HAVE_IPV6
         if (prefer_ipv6)
             hints.ai_family = JK_INET6;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to