From b3294f80bb2da46eeabe5c41f4387659f935606f Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 6 Dec 2019 15:54:50 +0800 Subject: [PATCH] =?UTF-8?q?DNS=C2=A0Deny=E5=8A=A8=E4=BD=9C=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=97=A5=E5=BF=97=E4=B8=8D=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E5=91=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fw_dns_plug.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fw_dns_plug.cpp b/src/fw_dns_plug.cpp index 34cb993..3196235 100644 --- a/src/fw_dns_plug.cpp +++ b/src/fw_dns_plug.cpp @@ -447,10 +447,12 @@ extern "C" char FW_DNS_PLUG_ENTRY(stSessionInfo* session_info, void **pme, int if(p_result!=NULL) { state=fw_dns_action(a_stream, dns_info, p_result, a_packet); - hit_num=1; + fw_dns_send_log(a_stream, dns_info, p_result, 1, thread_seq); + } + else + { + fw_dns_send_log(a_stream, dns_info, result, hit_num, thread_seq); } - - fw_dns_send_log(a_stream, dns_info, result, hit_num, thread_seq); }