mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Generate error messages when registration fails. Change all examples to use modsecurity.h to avoid the duplication of the optional function declarations.
This commit is contained in:
@@ -87,6 +87,9 @@ static int hook_pre_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_te
|
||||
* name "reverse".
|
||||
*/
|
||||
fn("strstr", (void *)op_strstr_init, (void *)op_strstr_exec);
|
||||
} else {
|
||||
ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, NULL,
|
||||
"mod_op_strstr: Unable to find modsec_register_operator.");
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
Reference in New Issue
Block a user