bugfix: session cannot get current flow direction on duplicate package

This commit is contained in:
luwenpeng
2024-05-16 17:05:45 +08:00
parent d6ae7c79f7
commit 1559f0a13e
4 changed files with 9 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ static void update_session_stat(struct session *sess, struct packet *pkt)
if (sess)
{
enum flow_direction dir = session_get_current_flow_direction(sess);
assert(dir != FLOW_DIRECTION_NONE);
int is_ctrl = packet_is_ctrl(pkt);
switch (packet_get_action(pkt))
{
@@ -36,7 +37,7 @@ static void update_session_stat(struct session *sess, struct packet *pkt)
}
session_set_current_packet(sess, NULL);
session_set_flow_direction(sess, FLOW_DIRECTION_NONE);
session_set_current_flow_direction(sess, FLOW_DIRECTION_NONE);
}
}