Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3044ad0

Browse files
aweitsFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Fix the variable resolution duration (Issueowasp-modsecurity#662)
apr_time_usec is apparently defined as follows:Which leads DURATION to not behave as expected when duration exceeds one second.
1 parent6d458be commit3044ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎apache2/re_variables.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ static int var_duration_generate(modsec_rec *msr, msre_var *var, msre_rule *rule
18281828

18291829
rvar=apr_pmemdup(mptmp,var,sizeof(msre_var));
18301830
rvar->value=apr_psprintf(mptmp,"%"APR_TIME_T_FMT,
1831-
(apr_time_usec(apr_time_now()-msr->r->request_time)));
1831+
(apr_time_now()-msr->r->request_time));
18321832
rvar->value_len=strlen(rvar->value);
18331833
apr_table_addn(vartab,rvar->name, (void*)rvar);
18341834

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp