summaryrefslogtreecommitdiff
path: root/src/fw_dns_plug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fw_dns_plug.cpp')
-rw-r--r--src/fw_dns_plug.cpp8
1 files 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);
}