aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcpv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-dhcpv6.c')
-rw-r--r--epan/dissectors/packet-dhcpv6.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dhcpv6.c b/epan/dissectors/packet-dhcpv6.c
index edaaef6410..e5f5db2905 100644
--- a/epan/dissectors/packet-dhcpv6.c
+++ b/epan/dissectors/packet-dhcpv6.c
@@ -580,11 +580,10 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
status_code);
if (optlen - 2 > 0) {
- status_message = tvb_get_string(tvb, off + 2, optlen - 2);
+ status_message = ep_tvb_get_string(tvb, off + 2, optlen - 2);
proto_tree_add_text(subtree, tvb, off + 2, optlen - 2,
"Status Message: %s",
status_message);
- g_free(status_message);
}
}
break;
@@ -728,9 +727,8 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
break;
case OPTION_TIME_ZONE:
if (optlen > 0) {
- buf = tvb_get_string(tvb, off, optlen);
+ buf = ep_tvb_get_string(tvb, off, optlen);
proto_tree_add_text(subtree, tvb, off, optlen, "time-zone: %s", buf);
- g_free(buf);
}
break;
case OPTION_LIFETIME: