diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index 9648976c..d9de6f6e 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -84,7 +84,7 @@ static void version(apr_pool_t *mp) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, "ModSecurity: Loaded APR do not match with compiled!"); } - pcre_vrs = apr_psprintf(mp,"%d.%02d", PCRE_MAJOR, PCRE_MINOR); + pcre_vrs = apr_psprintf(mp,"%d.%d ", PCRE_MAJOR, PCRE_MINOR); ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, "ModSecurity: PCRE compiled version=\"%s\"; " diff --git a/apache2/re.c b/apache2/re.c index 51659730..26258a1d 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -52,7 +52,7 @@ static int fetch_target_exception(msre_rule *rule, modsec_rec *msr, msre_var *va char *myvalue = NULL, *myname = NULL; const apr_array_header_t *tarr = NULL; const apr_table_entry_t *telts = NULL; - int i, match; + int i, match = 0; if(msr == NULL) return 0; @@ -148,7 +148,7 @@ static int fetch_target_exception(msre_rule *rule, modsec_rec *msr, msre_var *va } - if(match) + if(match == 1) return 1; return 0;