mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix: handle error with SecConnReadStateLimit configuration
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user