Summary: | mod_jk 1.2.8 segfaults when ForwardDirectories is enabled | ||
---|---|---|---|
Product: | Tomcat Connectors | Reporter: | Christopher G. Stach II <cstach-asf> |
Component: | Common | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Christopher G. Stach II
2005-01-31 08:06:56 UTC
I don't know why the handler isn't being set, but this patch remedies the segfault for now. --- jakarta-tomcat-connectors-1.2.8-src.orig/jk/native/apache-1.3/mod_jk.c Fri Dec 24 05:18:10 2004 +++ jakarta-tomcat-connectors-1.2.8-src/jk/native/apache-1.3/mod_jk.c Mon Jan 31 16:41:58 2005 @@ -1933,7 +1933,8 @@ * jk_fixups) and the request is for a directory: * --> forward to Tomcat, via default worker */ if (!worker && (conf->options & JK_OPT_FWDDIRS) && - r->prev && !strcmp(r->prev->handler, JK_HANDLER) && + r->prev && r->prev->handler && + !strcmp(r->prev->handler, JK_HANDLER) && r->uri[strlen(r->uri) - 1] == '/') { /* Nothing here to do but assign the first worker since we Hi, This has already been fixed in the CVS. Take a look at: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/native/apache- 1.3/mod_jk.c?r1=1.61&r2=1.62&diff_format=h |