Change col_set_str() call to col_add_str() since the string being passed

to it is freed right afterwards.  This fixes an issue reported to
wireshark-users by Ershov Pavel on Jan 9, 2010 (in the U.S.).


svn path=/trunk/; revision=31472
This commit is contained in:
Stephen Fisher 2010-01-09 20:15:02 +00:00
parent e49599c588
commit 279fa465aa
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ static void dissect_bjnp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
val_to_str (cmd_code, cmd_code_vals, "Unknown code (%d)"));
proto_item_append_text (ti, ", %s", info);
col_set_str (pinfo->cinfo, COL_INFO, info);
col_add_str (pinfo->cinfo, COL_INFO, info);
g_free (info);