summaryrefslogtreecommitdiff
path: root/packet-sccpmg.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2003-09-05 20:11:45 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2003-09-05 20:11:45 +0000
commit2d44a636e98e6cc355324a921b11ec014f5ea0b8 (patch)
treeb09b543d7ae72407b3766664f301d4704c05568e /packet-sccpmg.c
parent807e75690b6daa9dd89392711c718d43e92f096e (diff)
downloadwireshark-2d44a636e98e6cc355324a921b11ec014f5ea0b8.tar.gz
Fixed a bug introduced by my last update and reported for packet-mtp3.c
by Anders Broman. svn path=/trunk/; revision=8394
Diffstat (limited to 'packet-sccpmg.c')
-rwxr-xr-xpacket-sccpmg.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/packet-sccpmg.c b/packet-sccpmg.c
index d29febeaa9..b3c68586a9 100755
--- a/packet-sccpmg.c
+++ b/packet-sccpmg.c
@@ -8,7 +8,7 @@
*
* Copyright 2002, Jeff Morriss <jeff.morriss[AT]ulticom.com>
*
- * $Id: packet-sccpmg.c,v 1.6 2003/09/04 14:30:18 tuexen Exp $
+ * $Id: packet-sccpmg.c,v 1.7 2003/09/05 20:11:45 tuexen Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -285,17 +285,18 @@ dissect_sccpmg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *sccpmg_tree = NULL;
/* Make entry in the Protocol column on summary display */
- switch(mtp3_standard) {
- case ITU_STANDARD:
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (Int. ITU)");
- break;
- case ANSI_STANDARD:
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (ANSI)");
- break;
- case CHINESE_ITU_STANDARD:
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (Chin. ITU)");
- break;
- };
+ if (check_col(pinfo->cinfo, COL_INFO))
+ switch(mtp3_standard) {
+ case ITU_STANDARD:
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (Int. ITU)");
+ break;
+ case ANSI_STANDARD:
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (ANSI)");
+ break;
+ case CHINESE_ITU_STANDARD:
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCCPMG (Chin. ITU)");
+ break;
+ };
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */