Closes a file handle that was left opened on fuzzy hash

Fuzzy hash implementation was lefting a file handle behind whenever the results
matched.
This commit is contained in:
Felipe Zimmerle 2014-12-12 04:34:21 -08:00
parent f6d6cea015
commit b1e4954a86

View File

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