summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-07-05 14:55:29 +0800
committerliuxueli <[email protected]>2023-07-05 14:55:29 +0800
commit4237a4a970c521a1a1fc5b0543d343aa69b758b8 (patch)
treebb016331f27c9e56197cd4fb073c66078a0a907b /src
parent77c3005ca6d713ac21f8cca59413d6570b56454c (diff)
TSG-15514: ALLOW动作不支持多命中
Diffstat (limited to 'src')
-rw-r--r--src/tsg_bridge.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tsg_bridge.cpp b/src/tsg_bridge.cpp
index cf7e754..eb324b8 100644
--- a/src/tsg_bridge.cpp
+++ b/src/tsg_bridge.cpp
@@ -974,6 +974,7 @@ void session_matched_rules_notify(const struct streaminfo *a_stream, TSG_SERVICE
if(ret<0)
{
session_matched_rules_free_by_bridge(a_stream, g_tsg_bridge_para[bridge_idx].id, (void *)matched_policy);
+ return ;
}
}
@@ -983,7 +984,7 @@ void session_matched_rules_notify(const struct streaminfo *a_stream, TSG_SERVICE
int repeat_result=0;
for(size_t j=0; j<matched_policy->n_rules; j++)
{
- if(rules[i].rule_id==matched_policy->rules[j].rule_id)
+ if((rules[i].rule_id==matched_policy->rules[j].rule_id) || (rules[i].action==TSG_ACTION_BYPASS && matched_policy->rules[j].action==TSG_ACTION_BYPASS))
{
repeat_result=1;
break;