Fixed data corruption in the multipart parser.

This commit is contained in:
ivanr
2007-08-10 15:59:54 +00:00
parent a6ad6b2ec1
commit 855e75c12a

View File

@@ -329,8 +329,8 @@ static int multipart_process_part_data(modsec_rec *msr, char **error_msg) {
{
/* Two bytes. */
bytes_reserved = 2;
localreserve[0] = *(p - 1);
localreserve[1] = *(p - 2);
localreserve[0] = *(p - 2);
localreserve[1] = *(p - 1);
msr->mpd->bufleft += 2;
*(p - 2) = 0;
} else {