[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
-1: If won't work if the there is only one IPv6 address and I don't see
how that could be the reason of the core.
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]