TSG-9596: 执行Deny Action时未执行DROP的动作导致未阻断成功

This commit is contained in:
liuxueli
2022-02-16 18:12:22 +08:00
parent c0d8d5dd2e
commit f7cbaf52c8

View File

@@ -848,7 +848,12 @@ static unsigned char tsg_do_deny_action(const struct streaminfo *a_stream, struc
break;
}
local_state=0;
local_state=do_action_drop(a_stream, p_result, user_region, protocol, user_data);
if(protocol==PROTO_DNS && type==ACTION_RETURN_TYPE_APP)
{
local_state=set_drop_stream(a_stream, protocol);
}
if(user_region->deny->app_para.send_icmp_enable==1)
{
local_state|=send_icmp_unreachable(a_stream);