aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-02-24 23:08:50 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2014-02-25 07:47:57 +0000
commit92a369eaf4ba0ae47c06df2a235888dc015cbdcd (patch)
treefb4c026dd544164d746ed508cc7d77215cadfab9 /epan/dissectors/packet-gtp.c
parent53deb521e79f8266661cd87b1771b4414445f098 (diff)
Remove a few wrong use of tvb_get_string()
Change-Id: I7095e12439fd8c0c5cd3ce14d19662efa3fd841f Reviewed-on: https://code.wireshark.org/review/339 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r--epan/dissectors/packet-gtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index 44ea74ea98..ffb7967d65 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -4602,7 +4602,7 @@ static const gchar *
dissect_radius_qos_umts(proto_tree * tree, tvbuff_t * tvb, packet_info* pinfo _U_)
{
decode_qos_umts(tvb, 0, tree, "UMTS GTP QoS Profile", 3);
- return tvb_get_string(wmem_packet_scope(), tvb, 0, tvb_length(tvb));
+ return (gchar *)tvb_memdup(wmem_packet_scope(), tvb, 0, tvb_length(tvb));
}
#define MAX_APN_LENGTH 100