Joshua Slive <[EMAIL PROTECTED]> writes:
> Here's a core dump that is easy to generate in the current CVS.
> Just connect to the server and make the request "GET a HTTP/1.0".
This fixes it for me. The existing code didn't handle the filename
being unset, but then there is no filename for uri "a".
Index: modules/filters/mod_include.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/filters/mod_include.c,v
retrieving revision 1.125
diff -u -r1.125 mod_include.c
--- modules/filters/mod_include.c 2001/08/18 17:36:26 1.125
+++ modules/filters/mod_include.c 2001/08/21 20:50:32
@@ -832,8 +832,8 @@
for (p = r; p != NULL && !founddupe; p = p->main) {
request_rec *q;
for (q = p; q != NULL; q = q->prev) {
- if ( (strcmp(q->filename, rr->filename) == 0) ||
- (strcmp(q->uri, rr->uri) == 0) ){
+ if ((q->filename && rr->filename && (strcmp(q->filename,
+rr->filename) == 0)) ||
+ (strcmp(q->uri, rr->uri) == 0)) {
founddupe = 1;
break;
}
--
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...