fix# 733: don't crash on unknown msg_types

svn path=/trunk/; revision=17235
This commit is contained in:
Ulf Lamping 2006-02-09 21:02:02 +00:00
parent bed77708fe
commit 48c4f86c90
1 changed files with 6 additions and 1 deletions

View File

@ -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