Make sure multiple files in a single tx are inspected correctly. This
requires resetting part of the stored state on new files.
{
item->flags &= ~DE_STATE_FLAG_FILE_TC_INSPECT;
item->flags &= ~DE_STATE_FLAG_FULL_INSPECT;
+ item->flags &= ~DE_STATE_FLAG_SIG_CANT_MATCH;
}
if ((flags & STREAM_TOSERVER) &&
{
item->flags &= ~DE_STATE_FLAG_FILE_TS_INSPECT;
item->flags &= ~DE_STATE_FLAG_FULL_INSPECT;
+ item->flags &= ~DE_STATE_FLAG_SIG_CANT_MATCH;
}
}
}
}
}
+
+ tx_dir_state->flags &=
+ ~(DETECT_ENGINE_STATE_FLAG_FILE_TS_NEW|DETECT_ENGINE_STATE_FLAG_FILE_TC_NEW);
}
/* if the current tx is in progress, we won't advance to any newer
* tx' just yet. */