From b1e4954a86edcb365d56788c6fa7f2093f6b6b2f Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 12 Dec 2014 04:34:21 -0800 Subject: [PATCH] Closes a file handle that was left opened on fuzzy hash Fuzzy hash implementation was lefting a file handle behind whenever the results matched. --- apache2/re_operators.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apache2/re_operators.c b/apache2/re_operators.c index 4273e2e1..4f748d77 100644 --- a/apache2/re_operators.c +++ b/apache2/re_operators.c @@ -3946,6 +3946,7 @@ static int msre_op_fuzzy_hash_execute(modsec_rec *msr, msre_rule *rule, *error_msg = apr_psprintf(msr->mp, "Fuzzy hash of %s matched " \ "with %s (from: %s). Score: %d.", var->name, line, param->file, i); + fclose(fp); return 1; } }