Ticket: 7577
When HTTP1 post multipart handles a small file, it will call
HTPFileClose with some data
This data needs to be appended to the streaming buffer for usage
by file.data keyword even if we do not end up storing the file
SCLogDebug("file %p data %p data_len %u", ff, data, data_len);
SCSha256Update(ff->sha256_ctx, data, data_len);
}
- } else {
- if (AppendData(sbcfg, ff, data, data_len) != 0) {
- ff->state = FILE_STATE_ERROR;
- SCReturnInt(-1);
- }
+ }
+ if (AppendData(sbcfg, ff, data, data_len) != 0) {
+ ff->state = FILE_STATE_ERROR;
+ SCReturnInt(-1);
}
}