aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dns.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-11-14 03:51:41 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-11-14 03:51:41 +0000
commit167562929bd1d06385daff04f3e11002d88a71cd (patch)
tree9d1894b94f697db9f4f11acde7671c95d0d1ae75 /packet-dns.c
parent245f7d30ab4353c6461ca1b88d4b2e9142b55de2 (diff)
Check for existence of COL_INFO before adding "Short xxx packet" to
COL_INFO. svn path=/trunk/; revision=2641
Diffstat (limited to 'packet-dns.c')
-rw-r--r--packet-dns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-dns.c b/packet-dns.c
index fa82ecd1df..bf2a9aeb52 100644
--- a/packet-dns.c
+++ b/packet-dns.c
@@ -1,7 +1,7 @@
/* packet-dns.c
* Routines for DNS packet disassembly
*
- * $Id: packet-dns.c,v 1.57 2000/10/19 23:11:45 guy Exp $
+ * $Id: packet-dns.c,v 1.58 2000/11/14 03:51:41 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -2257,7 +2257,9 @@ dissect_dns(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
col_add_str(fd, COL_PROTOCOL, "DNS");
if (!BYTES_ARE_IN_FRAME(offset, DNS_HDRLEN)) {
- col_add_str(fd, COL_INFO, "Short DNS packet");
+ if (check_col(fd, COL_INFO)) {
+ col_add_str(fd, COL_INFO, "Short DNS packet");
+ }
old_dissect_data(pd, offset, fd, tree);
return;
}