Skip to content

Commit b1e4954

Browse files
author
Felipe Zimmerle
committed
Closes a file handle that was left opened on fuzzy hash
Fuzzy hash implementation was lefting a file handle behind whenever the results matched.
1 parent f6d6cea commit b1e4954

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/re_operators.c

+1
Original file line numberDiff line numberDiff line change
@@ -3946,6 +3946,7 @@ static int msre_op_fuzzy_hash_execute(modsec_rec *msr, msre_rule *rule,
39463946
*error_msg = apr_psprintf(msr->mp, "Fuzzy hash of %s matched " \
39473947
"with %s (from: %s). Score: %d.", var->name, line,
39483948
param->file, i);
3949+
fclose(fp);
39493950
return 1;
39503951
}
39513952
}

0 commit comments

Comments
 (0)