TSG-9308:修复在封装icmp获取raw_pkt可能不是从IP层来数据包,导致后续处理段错误问题

This commit is contained in:
yangwenlin
2022-01-17 14:33:52 +08:00
parent b1239d556e
commit b3ad7f4056
3 changed files with 45 additions and 23 deletions

View File

@@ -554,7 +554,7 @@ static unsigned char do_action_drop(const struct streaminfo *a_stream, Maat_rule
{
if(user_region!=NULL && user_region->deny!=NULL && user_region->deny->type==TSG_DENY_TYPE_SEND_ICMP)
{
send_icmp_unreachable(a_stream, a_packet);
send_icmp_unreachable(a_stream);
}
switch(protocol)