associated filename (e.g., we're filtering the error document for
a bad URI).
Reported by: Joshua Slive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90486
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.25-dev
+ *) Fix a segfault in mod_include when the original request has no
+ associated filename (e.g., we're filtering the error document for
+ a bad URI). [Jeff Trawick]
+
*) Fix a storage leak (a strdup() call) in mod_mime_magic. [Jeff Trawick]
*) The prefork and OS/2 MPMs are overwriting the pid file when a second copy
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;
}