possible memory corruption.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102354
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) Build array of allowed methods with proper dimensions, fixing
+ possible memory corruption. [Jeff Trawick]
+
*) Allow proxying of resources that are invoked via DirectoryIndex.
PR 14648. [André Malo]
ml = (ap_method_list_t *) apr_palloc(p, sizeof(ap_method_list_t));
ml->method_mask = 0;
- ml->method_list = apr_array_make(p, sizeof(char *), nelts);
+ ml->method_list = apr_array_make(p, nelts, sizeof(char *));
return ml;
}