diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-23 01:32:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-23 01:32:42 +0000 |
commit | 90bbb2c32c753af0fcc9c120e100a2a45ef0422d (patch) | |
tree | b7da350778b8e5d5efbde4bc1092a70ebec859c8 | |
parent | cbc46d3e985d4e7ff589b3446702e0222ffb4a62 (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
-rw-r--r-- | epan/dissectors/packet-fc.c | 5 |
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 |