]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: set event on bad timestamp on syn_sent state
authorVictor Julien <vjulien@oisf.net>
Thu, 9 Feb 2023 08:36:56 +0000 (09:36 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 9 Feb 2023 16:38:10 +0000 (17:38 +0100)
src/stream-tcp.c

index d2acf1d41ecd1be19879b0d94622e563d13498f5..6fe7c61426171a4b4c935f3a228b4e1806ad093a 100644 (file)
@@ -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) {