Fix: handle error with SecConnReadStateLimit configuration

This commit is contained in:
Martin Vierula
2022-11-20 10:39:04 -08:00
parent 2a42b08814
commit f7fa00aadf
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
DD mmm YYYY - 2.9.x (to be released)
-------------------
* Fix: handle error with SecConnReadStateLimit configuration
[Issue #2815, #2834 - @marcstern, @martinhsv]
* Only check for pcre2 install if required
[Issue #2833 - @martinhsv]
* Adjustment of previous fix for log messages

View File

@@ -1732,6 +1732,12 @@ char *parser_conn_limits_operator(apr_pool_t *mp, const char *p2,
char *param = strchr(p2, ' ');
char *file = NULL;
char *error_msg = NULL;
if (param == NULL) {
return apr_psprintf(mp, "ModSecurity: Space character between operator " \
"and parameter not found with ConnReadStateLimit: %s", p2);
}
param++;
config_orig_path = apr_pstrndup(mp, filename,