diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-09 02:25:23 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2006-12-09 02:25:23 +0000 |
commit | 5a3ec271949e00c64a946d2339902a5a97931705 (patch) | |
tree | 5afcceca13cccf45a72157f74acd1877b40ff38a /epan/dissectors/packet-wlccp.c | |
parent | 6fd2661144e9314bfc16d52bbdfd87fb093aebaa (diff) |
Change a match_strval() to val_to_str() in a col_add_fstr() call to prevent
problems if there isn't a match (corrupted packet).
svn path=/trunk/; revision=20077
Diffstat (limited to 'epan/dissectors/packet-wlccp.c')
-rw-r--r-- | epan/dissectors/packet-wlccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wlccp.c b/epan/dissectors/packet-wlccp.c index 185b45ac05..51c5fbf6d3 100644 --- a/epan/dissectors/packet-wlccp.c +++ b/epan/dissectors/packet-wlccp.c @@ -188,8 +188,8 @@ dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (check_col(pinfo->cinfo, COL_INFO)) { if(tvb_get_guint8(tvb, 0) == 0xC1) { /* Get the version number */ col_add_fstr(pinfo->cinfo, COL_INFO, "Message subtype: %s", - match_strval((tvb_get_guint8(tvb, 6)>>6) & 3, - wlccp_subtype_vs)); + val_to_str((tvb_get_guint8(tvb, 6)>>6) & 3, + wlccp_subtype_vs, "Unknown")); } else { col_add_str(pinfo->cinfo, COL_INFO, "WLCCP frame"); } |