aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lapsat.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-lapsat.c')
-rw-r--r--epan/dissectors/packet-lapsat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lapsat.c b/epan/dissectors/packet-lapsat.c
index fc8cacfe37..51d236d76e 100644
--- a/epan/dissectors/packet-lapsat.c
+++ b/epan/dissectors/packet-lapsat.c
@@ -505,7 +505,7 @@ dissect_lapsat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if ((plen + hlen) == tvb_length(tvb)) {
/* Need to integrate the last nibble */
- guint8 *data = (guint8 *)tvb_g_memdup(tvb, hlen, plen);
+ guint8 *data = (guint8 *)tvb_memdup(NULL, tvb, hlen, plen);
data[plen-1] |= tvb_get_guint8(tvb, 2) << 4;
payload = tvb_new_child_real_data(tvb, data, plen, plen);
tvb_set_free_cb(payload, g_free);