Fixed FlowTest01 and StreamReassemblyTest30

remotes/origin/master-1.0.x
Gurvinder Singh 16 years ago committed by Victor Julien
parent d2765511ce
commit 3f23f52c52

@ -795,6 +795,7 @@ static int FlowTest01 (void) {
uint8_t proto_map;
FlowInitFlowProto();
proto_map = FlowGetProtoMapping(IPPROTO_TCP);
if ((flow_proto[proto_map].new_timeout != FLOW_IPPROTO_TCP_NEW_TIMEOUT) && (flow_proto[proto_map].est_timeout != FLOW_IPPROTO_TCP_EST_TIMEOUT)

@ -1654,8 +1654,11 @@ static int StreamTcpCheckQueue (uint8_t *stream_contents, StreamMsgQueue *q, uin
break;
/*Gap at end*/
case 3:
if (cnt == 2 && msg->gap.gap_size != 3)
if (cnt == 3 && msg->gap.gap_size != 3 &&
msg->flags & STREAM_GAP)
{
return 0;
}
break;
}

Loading…
Cancel
Save