mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Avoid double close() for multipart file descriptors
This commit is contained in:
parent
1c3efe02f0
commit
1e8259b4a4
@ -624,6 +624,7 @@ static int multipart_process_boundary(modsec_rec *msr, int last_part, char **err
|
|||||||
&&(msr->mpd->mpp->tmp_file_fd != 0))
|
&&(msr->mpd->mpp->tmp_file_fd != 0))
|
||||||
{
|
{
|
||||||
close(msr->mpd->mpp->tmp_file_fd);
|
close(msr->mpd->mpp->tmp_file_fd);
|
||||||
|
msr->mpd->mpp->tmp_file_fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msr->mpd->mpp->type != MULTIPART_FILE) {
|
if (msr->mpd->mpp->type != MULTIPART_FILE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user