aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcp-failover.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-10 13:01:16 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-10 13:01:16 +0000
commit28e16917f79ee5a014190135bcecf053518d0017 (patch)
tree6484ce4c3bdd9a66611b11c65daf363d7efde7af /epan/dissectors/packet-dhcp-failover.c
parent3575bd187f19e9857789ca6e4c03941451b79657 (diff)
ememify tywo more tvb_get_string()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15269 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dhcp-failover.c')
-rw-r--r--epan/dissectors/packet-dhcp-failover.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dhcp-failover.c b/epan/dissectors/packet-dhcp-failover.c
index bd761896b9..16268e3fb4 100644
--- a/epan/dissectors/packet-dhcp-failover.c
+++ b/epan/dissectors/packet-dhcp-failover.c
@@ -578,13 +578,12 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* we need to dissect it as such.
*/
client_identifier_str =
- tvb_get_string(tvb, offset, option_length);
+ ep_tvb_get_string(tvb, offset, option_length);
proto_item_append_text(oi,", \"%s\"",
format_text(client_identifier_str, option_length));
proto_tree_add_string(option_tree,
hf_dhcpfo_client_identifier, tvb, offset,
option_length, client_identifier_str);
- g_free(client_identifier_str);
break;
case DHCP_FO_PD_CLIENT_HARDWARE_ADDRESS:
@@ -656,13 +655,12 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case DHCP_FO_PD_VENDOR_CLASS:
vendor_class_str =
- tvb_get_string(tvb, offset, option_length);
+ ep_tvb_get_string(tvb, offset, option_length);
proto_item_append_text(oi,", \"%s\"",
format_text(vendor_class_str, option_length));
proto_tree_add_string(option_tree,
hf_dhcpfo_vendor_class, tvb, offset,
option_length, vendor_class_str);
- g_free(vendor_class_str);
break;
case DHCP_FO_PD_LEASE_EXPIRATION_TIME: