]> git.ipfire.org Git - people/ms/suricata.git/commit
rust/smb: search for record on midstream start
authorVictor Julien <victor@inliniac.net>
Thu, 21 Jun 2018 12:31:14 +0000 (14:31 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 13 Jul 2018 07:10:28 +0000 (09:10 +0200)
commit2e6014b15cc492cc15b65feac7daabc62d0f443d
tree69ce16721f7c0003602350ed0e7564cc1447acd1
parent905d9a1dd8135033bee90b133b81729bf04a8219
rust/smb: search for record on midstream start

Calls with both START and MIDSTREAM mean the record might be cut and the
start of it could be missing. For this case, enable the same logic as is
used when catching up after a GAP. Search for the start of the record
instead of assuming it sits exactly at the start of the input data.
rust/src/smb/smb.rs
src/app-layer-smb-tcp-rust.c