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:
ivanr
2010-01-09 13:54:09 +00:00
parent c60ab6bfda
commit ce106df275
4 changed files with 16 additions and 13 deletions

View File

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