Small stream fixes.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent 970db6fdd8
commit 4914d8d903

@ -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;
}

@ -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 */

Loading…
Cancel
Save