stream: set event on bad timestamp on syn_sent state

pull/8529/head
Victor Julien 4 years ago
parent c3ecf63b1e
commit fc376f8145

@ -1467,8 +1467,10 @@ static int StreamTcpPacketStateSynSent(ThreadVars *tv, Packet *p,
"toclient":"toserver"); "toclient":"toserver");
/* check for bad responses */ /* check for bad responses */
if (StateSynSentValidateTimestamp(ssn, p) == false) if (StateSynSentValidateTimestamp(ssn, p) == false) {
StreamTcpSetEvent(p, STREAM_PKT_INVALID_TIMESTAMP);
return -1; return -1;
}
/* RST */ /* RST */
if (p->tcph->th_flags & TH_RST) { if (p->tcph->th_flags & TH_RST) {

Loading…
Cancel
Save