[EMAIL PROTECTED] wrote:
Author: markt
Date: Sat Aug 30 15:52:33 2008
New Revision: 690600

URL: http://svn.apache.org/viewvc?rev=690600&view=rev
Log:
Fix JVM crash on Tomcat start when IPv6 is enabled

Well, I was too fast in my comment...
In case we don't find an IPv6 returning sa is probably better.
If a null is returned TC shouldn't crash so we should prevent the crash too.

Cheers

Jean-Frederic


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

Modified: tomcat/connectors/trunk/jni/native/src/address.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/address.c?rev=690600&r1=690599&r2=690600&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/src/address.c (original)
+++ tomcat/connectors/trunk/jni/native/src/address.c Sat Aug 30 15:52:33 2008
@@ -48,7 +48,7 @@
 #if APR_HAVE_IPV6
     if (hostname == NULL) {
         /* Try all address using IPV6 one */
-        while (sl) {
+        while (sl && sl->next) {
             if (sl->family == APR_INET6)
                 break; /* Done */
             sl = sl->next;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to