aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fix.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-09 21:02:02 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-02-09 21:02:02 +0000
commit6e99c1751b2cf36b35d0daf4b978a9f919a6e6e1 (patch)
treeea0a2cebe4b095aa30037c4292a93f172fc0065c /epan/dissectors/packet-fix.c
parentd3e2293e4a413a49e05700980209434bca270259 (diff)
fix# 733: don't crash on unknown msg_types
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17235 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fix.c')
-rw-r--r--epan/dissectors/packet-fix.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-fix.c b/epan/dissectors/packet-fix.c
index 133998245b..dd754a7968 100644
--- a/epan/dissectors/packet-fix.c
+++ b/epan/dissectors/packet-fix.c
@@ -868,8 +868,13 @@ dissect_fix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
if (check_col(pinfo->cinfo, COL_INFO)) {
+ char *msg_type;
+
value = tvb_get_ephemeral_string(tvb, value_offset, value_len);
- col_add_fstr(pinfo->cinfo, COL_INFO, "%s", (char *)g_datalist_get_data(&msg_types, value));
+ msg_type = (char *)g_datalist_get_data(&msg_types, value);
+ if(msg_type) {
+ col_add_fstr(pinfo->cinfo, COL_INFO, "%s", msg_type);
+ }
}
/* In the interest of speed, if "tree" is NULL, don't do any work not