Skip to content

Commit

Permalink
Closes a file handle that was left opened on fuzzy hash
Browse files Browse the repository at this point in the history
Fuzzy hash implementation was lefting a file handle behind whenever the results
matched.
  • Loading branch information
Felipe Zimmerle committed Dec 12, 2014
1 parent f6d6cea commit b1e4954
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apache2/re_operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b1e4954

Please sign in to comment.