Fixed data corruption in the multipart parser.

This commit is contained in:
ivanr 2007-08-10 15:59:54 +00:00
parent 222f1f6f78
commit 28d44486e3

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 {