Avoid double close() for multipart file descriptors

This commit is contained in:
brenosilva 2012-07-27 01:00:13 +00:00
parent 1c3efe02f0
commit 1e8259b4a4

View File

@ -624,6 +624,7 @@ static int multipart_process_boundary(modsec_rec *msr, int last_part, char **err
&&(msr->mpd->mpp->tmp_file_fd != 0))
{
close(msr->mpd->mpp->tmp_file_fd);
msr->mpd->mpp->tmp_file_fd = -1;
}
if (msr->mpd->mpp->type != MULTIPART_FILE) {