for (; file != NULL; file = file->next) {
InspectionBuffer *buffer = FiledataGetDataCallback(det_ctx, transforms, f, flags, file,
engine->sm_list, engine->sm_list_base, local_file_id, txv);
- if (buffer == NULL)
+ if (buffer == NULL) {
+ local_file_id++;
continue;
+ }
bool eof = (file->state == FILE_STATE_CLOSED);
uint8_t ciflags = eof ? DETECT_CI_FLAGS_END : 0;
for (File *file = ffc->head; file != NULL; file = file->next) {
InspectionBuffer *buffer = FiledataGetDataCallback(det_ctx, ctx->transforms, f, flags,
file, list_id, ctx->base_list_id, local_file_id, txv);
- if (buffer == NULL)
+ if (buffer == NULL) {
+ local_file_id++;
continue;
+ }
SCLogDebug("[%" PRIu64 "] buffer size %u", p->pcap_cnt, buffer->inspect_len);
if (buffer->inspect_len >= mpm_ctx->minlen) {
for (File *file = ffc->head; file != NULL; file = file->next) {
InspectionBuffer *buffer = FilemagicGetDataCallback(
det_ctx, transforms, f, flags, file, engine->sm_list, local_file_id);
- if (buffer == NULL)
+ if (buffer == NULL) {
+ local_file_id++;
continue;
+ }
const bool match = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, NULL, f,
buffer->inspect, buffer->inspect_len, buffer->inspect_offset,
for (File *file = ffc->head; file != NULL; file = file->next) {
InspectionBuffer *buffer = FilenameGetDataCallback(
det_ctx, transforms, f, flags, file, engine->sm_list, local_file_id);
- if (buffer == NULL)
+ if (buffer == NULL) {
+ local_file_id++;
continue;
+ }
const bool match = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, NULL, f,
buffer->inspect, buffer->inspect_len, buffer->inspect_offset,