summaryrefslogtreecommitdiff
path: root/src/tsg_rule.cpp
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-02-10 21:54:35 +0800
committerliuxueli <[email protected]>2023-02-10 21:54:35 +0800
commit41186dd8c790fe2ca609cc02012a5b335c532465 (patch)
tree02af9fa3d562a9c215bd944ab15c388a371897ac /src/tsg_rule.cpp
parent1332eedb94c7f26d17f2bdb919f7d3eb290124b8 (diff)
master命中策略的链接,链接结束时需单独发送日志v5.10.2
Diffstat (limited to 'src/tsg_rule.cpp')
-rw-r--r--src/tsg_rule.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index a56e13d..ac6381b 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -2880,6 +2880,11 @@ int tsg_scan_shared_policy(Maat_feather_t maat_feather, const struct streaminfo
}
int fqdn_len=get_fqdn_len(domain);
+ if(fqdn_len==0)
+ {
+ return 0;
+ }
+
int ret=Maat_full_scan_string(g_tsg_maat_feather, table_id, CHARSET_UTF8, domain, fqdn_len, result, NULL, result_num, mid, thread_seq);
if(ret>0)
{