aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vrt.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-29 02:46:06 +0000
committerEvan Huus <eapache@gmail.com>2013-03-29 02:46:06 +0000
commit03b48f94c2dcc7a07b10a33f57a13392c1f0aa57 (patch)
treefd6056a2c5ee5d9c1f7b4b8386c7b67db224a7cc /epan/dissectors/packet-vrt.c
parenta0d107beec7608c673f584e30987afc42061a514 (diff)
Fix two instances of col_set_str being used with ephemeral memory returned
from val_to_str. Use col_add_str instead. Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8537 svn path=/trunk/; revision=48636
Diffstat (limited to 'epan/dissectors/packet-vrt.c')
-rw-r--r--epan/dissectors/packet-vrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vrt.c b/epan/dissectors/packet-vrt.c
index 943f1daaad..3398b6fa3d 100644
--- a/epan/dissectors/packet-vrt.c
+++ b/epan/dissectors/packet-vrt.c
@@ -183,7 +183,7 @@ static void dissect_vrt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* get packet type */
type = tvb_get_guint8(tvb, offset) >> 4;
- col_set_str(pinfo->cinfo, COL_INFO, val_to_str(type, packet_types, "Reserved packet type (0x%02x)"));
+ col_add_str(pinfo->cinfo, COL_INFO, val_to_str(type, packet_types, "Reserved packet type (0x%02x)"));
/* get SID, CID, T, TSI, and TSF flags */
sidflag = (type & 1) || (type == 4);