From 31d9a05c2dfa20875e77a11d3f23abbf434e0ae3 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Thu, 3 Mar 2022 09:48:11 +0800 Subject: [PATCH] =?UTF-8?q?TSG-9722:=20=E4=B8=BA=E4=BF=9D=E8=AF=81?= =?UTF-8?q?=E9=98=BB=E6=96=AD=E6=95=88=E6=9E=9C=EF=BC=8C=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=A2=E5=BC=83=E6=95=B4=E4=B8=AA=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_action.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp index 3617ce5..c300851 100644 --- a/src/tsg_action.cpp +++ b/src/tsg_action.cpp @@ -902,6 +902,7 @@ unsigned char tsg_deny_application(const struct streaminfo *a_stream, Maat_rule_ dict=(struct app_id_dict *)Maat_plugin_get_EX_data(g_tsg_maat_feather, g_tsg_para.table_id[TABLE_APP_ID_DICT], (const char *)app_id_buff); if(dict==NULL) { + set_drop_stream(a_stream, protocol); return ((type==ACTION_RETURN_TYPE_PROT) ? PROT_STATE_DROPPKT|PROT_STATE_DROPME: APP_STATE_DROPME|APP_STATE_DROPPKT); } @@ -945,6 +946,7 @@ unsigned char tsg_deal_deny_action(const struct streaminfo *a_stream, Maat_rule_ user_region=(struct compile_user_region *)Maat_rule_get_ex_data(g_tsg_maat_feather, p_result, g_tsg_para.table_id[TABLE_SECURITY_COMPILE]); if(user_region==NULL) { + set_drop_stream(a_stream, protocol); return ((type==ACTION_RETURN_TYPE_PROT) ? PROT_STATE_DROPPKT|PROT_STATE_DROPME: APP_STATE_DROPME|APP_STATE_DROPPKT); }