aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-03-18 20:22:10 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-03-22 06:18:43 +0000
commita055e3c2998bee416a2649fa28df37b05f86ddca (patch)
treed236ec8c15a13804b24ae5431282feea672f527b /epan/dissectors/packet-dns.c
parent6cff9f072054da3e0b96a9ec18f3d795d3d66c2c (diff)
dns: skip stats if packet is within icmp.
Change-Id: I0f1866361ce60713535b1875fc9b75fe049f1790 Reviewed-on: https://code.wireshark.org/review/26537 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dns.c')
-rw-r--r--epan/dissectors/packet-dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 665c0ebf83..d8e012743c 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -3986,6 +3986,9 @@ dissect_dns_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
/* Collect stats */
+ if (!pinfo->flags.in_error_pkt) {
+ return;
+ }
if (is_mdns) {
/* TODO */
} else if (is_llmnr) {