aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wtls.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-wtls.c')
-rw-r--r--epan/dissectors/packet-wtls.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/epan/dissectors/packet-wtls.c b/epan/dissectors/packet-wtls.c
index df79c656e6..86770526b9 100644
--- a/epan/dissectors/packet-wtls.c
+++ b/epan/dissectors/packet-wtls.c
@@ -331,17 +331,14 @@ dissect_wtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *wtls_rec_tree;
proto_tree *wtls_msg_type_tree;
- if (check_col(pinfo->cinfo, COL_PROTOCOL))
+ switch ( pinfo->match_uint )
{
- switch ( pinfo->match_uint )
- {
- case UDP_PORT_WTLS_WSP:
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WSP" );
- break;
- case UDP_PORT_WTLS_WTP_WSP:
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WTP+WSP" );
- break;
- }
+ case UDP_PORT_WTLS_WSP:
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WSP" );
+ break;
+ case UDP_PORT_WTLS_WTP_WSP:
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WTP+WSP" );
+ break;
}
/* Develop the string to put in the Info column */