From 8cacd5fe506ddbdd8f733e40f5c72a9693c9485f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 12 Jan 2011 16:45:18 +0100 Subject: [PATCH] Fix the stream.inline config option. Set PKT_STREAM_EST flag also for packets that are part of a session in a state beyond TCP_ESTABLISHED. --- src/stream-tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index ffbbebc1f4..5450b5f4fc 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -429,7 +429,7 @@ void StreamTcpInitConfig(char quiet) char *inl = NULL; if ((ConfGet("stream.inline", &inl)) == 1) { - if (strncmp(csum, "yes", 3) == 0) { + if (strcasecmp(inl, "yes") == 0) { stream_inline = 1; } } @@ -3281,7 +3281,7 @@ static int StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt, break; } - if (ssn->state == TCP_ESTABLISHED) { + if (ssn->state >= TCP_ESTABLISHED) { p->flags |= PKT_STREAM_EST; } else if (ssn->state > TCP_ESTABLISHED) { p->flags |= PKT_STREAM_EOF;