DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41829

           Summary: usage of an uninitialized structure member in
                    server/request.c
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


in ap_directory_walk the opts structure represents the currently active options
and allowed overrides. In 2.2.0 "AllowOverride Options=..." was introduced and
with it a new member of this structure override_opts. Unfortunately this member
is not properly initialized from this_dir->override_opts. This prevents
maptostorage handlers from inserting additional configuration statements like
mod_perls "$r->add_config(['AllowOverride Options'])". With Apache 2.0.x this
has worked but has ceased to since 2.2.0 because opts.override_opts is by 
chance 0.

This simple patch cures the problem:

--- server/request.c~   2007-03-11 17:20:25.000000000 +0100
+++ server/request.c    2007-03-11 17:50:01.000000000 +0100
@@ -631,6 +631,7 @@
         opts.add = this_dir->opts_add;
         opts.remove = this_dir->opts_remove;
         opts.override = this_dir->override;
+        opts.override_opts = this_dir->override_opts;

         /* Set aside path_info to merge back onto path_info later.
          * If r->filename is a directory, we must remerge the path_info,

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to