mirror of https://github.com/OISF/suricata
app-layer: improve EOF handling
On receiving TCP end of stream packets (e.g. RST, but also sometimes FIN packets), in some cases the AppLayer parser would not be notified. This could happen in IDS mode, but would especially be an issue in IPS mode. This patch changes the logic of the AppLayer API to handle this. When no new data is available, and the stream ends, the AppLayer API now gets called with a NULL/0 input, but with the EOF flag set. This allows the AppLayer parser to call it's final routines still in the context of a real packet.pull/1561/head
parent
df79c1019f
commit
cf9ff6adbd
Loading…
Reference in New Issue