tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r686878 - /tomcat/connectors/trunk/jni/native/src/info.c
Date Mon, 18 Aug 2008 22:02:00 GMT
Author: jfclere
Date: Mon Aug 18 15:01:59 2008
New Revision: 686878

URL: http://svn.apache.org/viewvc?rev=686878&view=rev
Log:
Fix PR#43327.

Modified:
    tomcat/connectors/trunk/jni/native/src/info.c

Modified: tomcat/connectors/trunk/jni/native/src/info.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/info.c?rev=686878&r1=686877&r2=686878&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/src/info.c (original)
+++ tomcat/connectors/trunk/jni/native/src/info.c Mon Aug 18 15:01:59 2008
@@ -200,12 +200,18 @@
 
 static void fill_ainfo(JNIEnv *e, jobject obj, apr_sockaddr_t *info)
 {
+    apr_int32_t f;
+    if (info->family == APR_UNSPEC) f = 0;
+    else if (info->family == APR_INET) f = 1;
+    else if (info->family == APR_INET6) f = 2;
+    else f = info->family;
 
     SET_AINFO_J(pool, P2J(info->pool));
     SET_AINFO_S(hostname, info->hostname);
     SET_AINFO_S(servname, info->servname);
     SET_AINFO_I(port, info->port);
     SET_AINFO_I(family, info->family);
+    SET_AINFO_I(family, f);
     SET_AINFO_J(next, P2J(info->next));
 
 }



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


Mime
View raw message