aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-07-23 01:32:42 +0000
committerGuy Harris <guy@alum.mit.edu>2004-07-23 01:32:42 +0000
commit90bbb2c32c753af0fcc9c120e100a2a45ef0422d (patch)
treeb7da350778b8e5d5efbde4bc1092a70ebec859c8 /epan/dissectors/packet-fc.c
parentcbc46d3e985d4e7ff589b3446702e0222ffb4a62 (diff)
We are not guaranteed that "fchdr.r_ctl & 0x0F" is a valid frame type,
so don't use "match_strval()", use "val_to_str()". svn path=/trunk/; revision=11474
Diffstat (limited to 'epan/dissectors/packet-fc.c')
-rw-r--r--epan/dissectors/packet-fc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fc.c b/epan/dissectors/packet-fc.c
index 68253d2965..4f823018bd 100644
--- a/epan/dissectors/packet-fc.c
+++ b/epan/dissectors/packet-fc.c
@@ -842,8 +842,9 @@ dissect_fc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (ftype == FC_FTYPE_LINKCTL)
col_append_fstr (pinfo->cinfo, COL_INFO, ", %s",
- match_strval ((fchdr.r_ctl & 0x0F),
- fc_lctl_proto_val));
+ val_to_str ((fchdr.r_ctl & 0x0F),
+ fc_lctl_proto_val,
+ "LCTL 0x%x"));
}
/* In the interest of speed, if "tree" is NULL, don't do any work not