From: Victor Julien Date: Thu, 9 Feb 2023 08:36:56 +0000 (+0100) Subject: stream: set event on bad timestamp on syn_sent state X-Git-Tag: suricata-6.0.11~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8531%2Fhead;p=thirdparty%2Fsuricata.git stream: set event on bad timestamp on syn_sent state (cherry picked from commit fc376f81455ebfd487a0de2f8a14884be073b8ac) --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 9dda93a412..cba69eba1d 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -1468,8 +1468,10 @@ static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p, "toclient":"toserver"); /* check for bad responses */ - if (StateSynSentValidateTimestamp(ssn, p) == false) + if (StateSynSentValidateTimestamp(ssn, p) == false) { + StreamTcpSetEvent(p, STREAM_PKT_INVALID_TIMESTAMP); return -1; + } /* RST */ if (p->tcph->th_flags & TH_RST) {