diff options
| author | liuxueli <[email protected]> | 2022-02-15 16:39:13 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2022-02-15 16:39:13 +0800 |
| commit | c0d8d5dd2e7d8cb4067b1111d9d8e6e58e70d7b2 (patch) | |
| tree | 8d26533de43e660181c93b0ac25efa171c392295 | |
| parent | 286c308f94b2d25b14f7872ba382d90adec9635a (diff) | |
TSG-9521: 修复执行Deny Action时错误调用do_action_tamper函数,应调用send_icmp_unreachable函数v5.5.3
| -rw-r--r-- | src/tsg_action.cpp | 2 | ||||
| -rw-r--r-- | src/tsg_icmp.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tsg_action.cpp b/src/tsg_action.cpp index 5be0500..d5017fc 100644 --- a/src/tsg_action.cpp +++ b/src/tsg_action.cpp @@ -851,7 +851,7 @@ static unsigned char tsg_do_deny_action(const struct streaminfo *a_stream, struc local_state=0; if(user_region->deny->app_para.send_icmp_enable==1) { - local_state|=do_action_tamper(a_stream, p_result, user_region, protocol, user_data); + local_state|=send_icmp_unreachable(a_stream); } if(user_region->deny->app_para.send_reset_enable==1) diff --git a/src/tsg_icmp.cpp b/src/tsg_icmp.cpp index f03f333..4ef118b 100644 --- a/src/tsg_icmp.cpp +++ b/src/tsg_icmp.cpp @@ -350,6 +350,6 @@ unsigned char send_icmp_unreachable(const struct streaminfo *a_stream) __FUNCTION__, debug_buf); - return STATE_DROPPKT; + return STATE_DROPME|STATE_DROPPKT;; } |
