Author: rjung Date: Wed Mar 4 17:23:49 2009 New Revision: 750082 URL: http://svn.apache.org/viewvc?rev=750082&view=rev Log: I think we can initialize addr_sequence in any case, because we use the port to decide, whether this worker is enabled or not.
Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=750082&r1=750081&r2=750082&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Wed Mar 4 17:23:49 2009 @@ -2508,11 +2508,11 @@ /* Copy the contact to shm */ strncpy(p->s->host, p->host, JK_SHM_STR_SIZ); p->s->port = p->port; + p->s->addr_sequence = p->addr_sequence = 0; /* Resolve if port > 0. */ if (p->port > 0) { if (jk_resolve(p->host, p->port, &p->worker_inet_addr, we->pool, l)) { - p->s->addr_sequence = p->addr_sequence = 1; JK_TRACE_EXIT(l); return JK_TRUE; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org