summaryrefslogtreecommitdiff
path: root/src/tsg_action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsg_action.cpp')
-rw-r--r--src/tsg_action.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp
index c300851..276e25e 100644
--- a/src/tsg_action.cpp
+++ b/src/tsg_action.cpp
@@ -576,6 +576,12 @@ static unsigned char do_action_drop(const struct streaminfo *a_stream, Maat_rule
static unsigned char do_action_tamper(const struct streaminfo *a_stream, Maat_rule_t *p_result, struct compile_user_region *user_region, tsg_protocol_t protocol, const void *user_data)
{
+ if(g_tsg_para.feature_tamper==0)
+ {
+ do_action_drop(a_stream, p_result, user_region, protocol, user_data);
+ return STATE_DROPME|STATE_DROPPKT;
+ }
+
if(user_region==NULL)
{
return do_action_drop(a_stream, p_result, user_region, protocol, user_data);