diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 2a6ef23449..4bceba5e75 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -43,9 +43,9 @@ static void AlpResultElmtPoolFree(void *e) { static AppLayerParserResultElmt *AlpGetResultElmt(void) { AppLayerParserResultElmt *e = (AppLayerParserResultElmt *)PoolGet(al_result_pool); - if (e == NULL) + if (e == NULL) { return NULL; - + } e->next = NULL; return e; } diff --git a/src/detect-isdataat.h b/src/detect-isdataat.h old mode 100755 new mode 100644 diff --git a/src/stream-tcp-reassemble.c b/src/stream-tcp-reassemble.c index 742e3d1258..2dcb250b70 100644 --- a/src/stream-tcp-reassemble.c +++ b/src/stream-tcp-reassemble.c @@ -912,7 +912,7 @@ static void StreamTcpSetupMsg(TcpSession *ssn, TcpStream *stream, Packet *p, Str static int StreamTcpReassembleCheckLimit(TcpSession *ssn, TcpStream *stream, Packet *p) { /* some states mean we reassemble no matter how much data we have */ - if (ssn->state == TCP_TIME_WAIT) + if (ssn->state >= TCP_TIME_WAIT) return 1; /* check if we have enough data to send to L7 */