mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Merge pull request #3067 from owasp-modsecurity/revert-2953-v2/mst/optim1
Revert "remove useless apr_pstrdup()"
This commit is contained in:
commit
4629057fc9
@ -183,9 +183,9 @@ int expand_macros(modsec_rec *msr, msc_string *var, msre_rule *rule, apr_pool_t
|
||||
* no macros in the input data.
|
||||
*/
|
||||
|
||||
data = var->value;
|
||||
data = apr_pstrdup(mptmp, var->value); /* IMP1 Are we modifying data anywhere? */
|
||||
arr = apr_array_make(mptmp, 16, sizeof(msc_string *));
|
||||
if (arr == NULL) return -1;
|
||||
if ((data == NULL)||(arr == NULL)) return -1;
|
||||
|
||||
text_start = next_text_start = data;
|
||||
do {
|
||||
|
Loading…
x
Reference in New Issue
Block a user