-- fixed implied equal range checks (ie just a #, no op)
-- fixed !content
-- support \xFF style hex chars in content strings
+-- fix icmp session cleanup counting
+-- fix null flow_con in print mode
127
-- REG_TEST out logging tcp options for rebuilt packets to match snort bug
void base_sum()
{
+ if ( !flow_con )
+ return;
+
t_stats.tcp_flows = flow_con->get_flows(IPPROTO_TCP);
t_stats.tcp_prunes = flow_con->get_prunes(IPPROTO_TCP);
void base_reset()
{
- flow_con->clear_counts();
+ if ( flow_con )
+ flow_con->clear_counts();
+
memset(&t_stats, 0, sizeof(t_stats));
}
CloseStreamSession(&sfBase, SESSION_CLOSED_NORMALLY);
}
- ssn->clear();
-
if ( ssn->s5_state.session_flags & SSNFLAG_SEEN_SENDER )
icmpStats.released++;
+
+ ssn->clear();
}
static int ProcessIcmpUnreach(Packet *p)