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

@@ -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,