aboutsummaryrefslogtreecommitdiffstats
path: root/ui/iface_lists.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-01-05 11:12:08 -0500
committerAnders Broman <a.broman58@gmail.com>2015-01-06 07:38:18 +0000
commit55de46f317b5e3aba957f4aa44e242aea0d29dfc (patch)
tree3e5c8a3d17ef272b098fc7db62b6f56ab0b96f78 /ui/iface_lists.c
parent124272ec097852c0c0efa587cb1cb1bf8047ff73 (diff)
Replace ep_address_to_str with address_to_str.
Change-Id: I4f1078b20f41800f72a751612703ad0d4c2ae87b Reviewed-on: https://code.wireshark.org/review/6323 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/iface_lists.c')
-rw-r--r--ui/iface_lists.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/iface_lists.c b/ui/iface_lists.c
index 8fed6eddbd..a1f761adc9 100644
--- a/ui/iface_lists.c
+++ b/ui/iface_lists.c
@@ -192,22 +192,26 @@ scan_local_interfaces(void (*update_cb)(void))
addr = (if_addr_t *)curr_addr->data;
if (addr) {
address addr_str;
+ char* temp_addr_str = NULL;
temp_addr->ifat_type = addr->ifat_type;
switch (addr->ifat_type) {
case IF_AT_IPv4:
temp_addr->addr.ip4_addr = addr->addr.ip4_addr;
SET_ADDRESS(&addr_str, AT_IPv4, 4, &addr->addr.ip4_addr);
- g_string_append(ip_str, ep_address_to_str(&addr_str));
+ temp_addr_str = address_to_str(NULL, &addr_str);
+ g_string_append(ip_str, temp_addr_str);
break;
case IF_AT_IPv6:
memcpy(temp_addr->addr.ip6_addr, addr->addr.ip6_addr, sizeof(addr->addr));
SET_ADDRESS(&addr_str, AT_IPv6, 16, addr->addr.ip6_addr);
- g_string_append(ip_str, ep_address_to_str(&addr_str));
+ temp_addr_str = address_to_str(NULL, &addr_str);
+ g_string_append(ip_str, temp_addr_str);
break;
default:
/* In case we add non-IP addresses */
break;
}
+ wmem_free(NULL, temp_addr_str);
} else {
g_free(temp_addr);
temp_addr = NULL;