mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 16:06:12 +03:00
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:
parent
f6d6cea015
commit
b1e4954a86
@ -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 " \
|
*error_msg = apr_psprintf(msr->mp, "Fuzzy hash of %s matched " \
|
||||||
"with %s (from: %s). Score: %d.", var->name, line,
|
"with %s (from: %s). Score: %d.", var->name, line,
|
||||||
param->file, i);
|
param->file, i);
|
||||||
|
fclose(fp);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user