From fc376f81455ebfd487a0de2f8a14884be073b8ac Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 9 Feb 2023 09:36:56 +0100 Subject: [PATCH] stream: set event on bad timestamp on syn_sent state --- src/stream-tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index d2acf1d41e..6fe7c61426 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -1467,8 +1467,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) {