aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lwres.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2021-10-07 10:25:12 -0400
committerEvan Huus <eapache@gmail.com>2021-10-07 10:25:12 -0400
commit07f5472aa7327e23c3d21a81b0352d8a889112cc (patch)
treeee1f530efe60cf9c2a7c3b7cb18b8631f6a17991 /epan/dissectors/packet-lwres.c
parent4a2b18a9c04997183b2ff1b6e50843e6970b74f7 (diff)
to_str: scope tvb_ip_to_str
Diffstat (limited to 'epan/dissectors/packet-lwres.c')
-rw-r--r--epan/dissectors/packet-lwres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-lwres.c b/epan/dissectors/packet-lwres.c
index 8b92037da0..05371c2113 100644
--- a/epan/dissectors/packet-lwres.c
+++ b/epan/dissectors/packet-lwres.c
@@ -194,7 +194,7 @@ static void dissect_getnamebyaddr_request(tvbuff_t* tvb, proto_tree* lwres_tree)
flags = tvb_get_ntohl(tvb, LWRES_LWPACKET_LENGTH);
family = tvb_get_ntohl(tvb, LWRES_LWPACKET_LENGTH + 4);
addrlen = tvb_get_ntohs(tvb, LWRES_LWPACKET_LENGTH + 8);
- addrs = tvb_ip_to_str(tvb, LWRES_LWPACKET_LENGTH + 10);
+ addrs = tvb_ip_to_str(wmem_packet_scope(), tvb, LWRES_LWPACKET_LENGTH + 10);
slen = (int)strlen(addrs);
if (lwres_tree == NULL)
@@ -407,7 +407,7 @@ static void dissect_getaddrsbyname_response(tvbuff_t* tvb, packet_info *pinfo, p
{
family = tvb_get_ntohl(tvb, offset);
length = tvb_get_ntohs(tvb, offset + 4);
- addrs = tvb_ip_to_str(tvb, offset + 6);
+ addrs = tvb_ip_to_str(pinfo->pool, tvb, offset + 6);
slen = (int)strlen(addrs);
addr_tree = proto_tree_add_subtree_format(adn_resp_tree,tvb, offset, 4+2+4, ett_adn_addr, NULL, "Address %s", addrs);
@@ -447,7 +447,7 @@ static void dissect_a_records(tvbuff_t* tvb, proto_tree* tree,guint32 nrec,int o
curr = offset + (int)((sizeof(guint32)+sizeof(guint16)) * i);
- addrs = tvb_ip_to_str(tvb, curr+2);
+ addrs = tvb_ip_to_str(wmem_packet_scope(), tvb, curr+2);
addr_tree = proto_tree_add_subtree_format(a_rec_tree, tvb, curr,
6, ett_a_rec_addr, NULL, "Address %s", addrs);