Skip to content

Commit 31c3b4e

Browse files
authored
Merge pull request #2834 from martinhsv/v2/master
Fix: handle error with SecConnReadStateLimit configuration
2 parents 2a42b08 + f7fa00a commit 31c3b4e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD mmm YYYY - 2.9.x (to be released)
22
-------------------
33

4+
* Fix: handle error with SecConnReadStateLimit configuration
5+
[Issue #2815, #2834 - @marcstern, @martinhsv]
46
* Only check for pcre2 install if required
57
[Issue #2833 - @martinhsv]
68
* Adjustment of previous fix for log messages

apache2/apache2_config.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,12 @@ char *parser_conn_limits_operator(apr_pool_t *mp, const char *p2,
17321732
char *param = strchr(p2, ' ');
17331733
char *file = NULL;
17341734
char *error_msg = NULL;
1735+
1736+
if (param == NULL) {
1737+
return apr_psprintf(mp, "ModSecurity: Space character between operator " \
1738+
"and parameter not found with ConnReadStateLimit: %s", p2);
1739+
}
1740+
17351741
param++;
17361742

17371743
config_orig_path = apr_pstrndup(mp, filename,

0 commit comments

Comments
 (0)