per-method Satisfy feature was added.
PR: 31315
Submitted by: Rici Lake <rici ricilake.net>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105215
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) SECURITY: CAN-2004-0811 (cve.mitre.org)
+ Fix merging of the Satisfy directive, which was applied to
+ the surrounding context and could allow access despite configured
+ authentication. PR 31315. [Rici Lake <rici ricilake.net>]
+
*) Fix the global mutex crash when the global mutex is never allocated due
to disabled/empty caches. [Jess Holle <jessh ptc.com>]
/* Otherwise we simply use the base->sec_file array
*/
+ /* use a separate ->satisfy[] array either way */
+ conf->satisfy = apr_palloc(a, sizeof(*conf->satisfy) * METHODS);
for (i = 0; i < METHODS; ++i) {
if (new->satisfy[i] != SATISFY_NOSPEC) {
conf->satisfy[i] = new->satisfy[i];
+ } else {
+ conf->satisfy[i] = base->satisfy[i];
}
}