You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jean-frederic clere <jf...@gmail.com> on 2008/09/01 13:35:22 UTC
Re: svn commit: r690600 - /tomcat/connectors/trunk/jni/native/src/address.c
markt@apache.org 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: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org