summaryrefslogtreecommitdiff
path: root/ui/gtk/voip_calls_dlg.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-01-07 19:24:52 -0500
committerAnders Broman <a.broman58@gmail.com>2015-01-08 07:18:09 +0000
commitcff098e3eb6a871a1e39559d27b33dc3a3437c2c (patch)
treef4ec6b456958bd5ebf0ba5204f5424f8c477838a /ui/gtk/voip_calls_dlg.c
parent5d610b58c5c45c0bb555d227a684785a0721f434 (diff)
downloadwireshark-cff098e3eb6a871a1e39559d27b33dc3a3437c2c.tar.gz
guid_to_ep_str -> guid_to_str
guid_to_str now uses wmem allocation. Change-Id: I8e48d1a720942fbefbaa6227ae0929cb9f856359 Reviewed-on: https://code.wireshark.org/review/6391 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/voip_calls_dlg.c')
-rw-r--r--ui/gtk/voip_calls_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/voip_calls_dlg.c b/ui/gtk/voip_calls_dlg.c
index 8fbff7aa20..1acd9bd38c 100644
--- a/ui/gtk/voip_calls_dlg.c
+++ b/ui/gtk/voip_calls_dlg.c
@@ -198,7 +198,7 @@ voip_calls_on_filter(GtkButton *button _U_, gpointer user_data _U_)
size_t filter_length;
size_t max_filter_length = 2048; /* What's this based on ? */
int pos;
- char* addr_str;
+ char *addr_str, *guid_str;
const sip_calls_info_t *sipinfo;
const isup_calls_info_t *isupinfo;
@@ -278,14 +278,16 @@ voip_calls_on_filter(GtkButton *button _U_, gpointer user_data _U_)
break;
case VOIP_H323:
h323info = (h323_calls_info_t *)listinfo->prot_info;
+ guid_str = guid_to_str(NULL, &h323info->guid[0]);
g_string_append_printf(filter_string_fwd,
"((h225.guid == %s || q931.call_ref == %x:%x || q931.call_ref == %x:%x)",
- guid_to_ep_str(&h323info->guid[0]),
+ guid_str,
(guint8) (h323info->q931_crv & 0x00ff),
(guint8)((h323info->q931_crv & 0xff00)>>8),
(guint8) (h323info->q931_crv2 & 0x00ff),
(guint8)((h323info->q931_crv2 & 0xff00)>>8));
listb = g_list_first(h323info->h245_list);
+ wmem_free(NULL, guid_str);
while (listb) {
h245_add = (h245_address_t *)listb->data;
addr_str = (char*)address_to_str(NULL, &h245_add->h245_address);