summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-03-06 20:54:58 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-03-06 20:54:58 +0000
commit1a855bfde2e1c984628aacac8e418b92c9856427 (patch)
tree1d401a48af83684e8fcff8781f89a9c9e16b98a4 /gtk
parent71fae790300ab570a1d9040cc3d95dbbf219af39 (diff)
downloadwireshark-1a855bfde2e1c984628aacac8e418b92c9856427.tar.gz
From Andrej Kuehnal:
New feature: extract specified diameter AVPs from large capture files. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4560 svn path=/trunk/; revision=32132
Diffstat (limited to 'gtk')
-rw-r--r--gtk/diameter_stat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/diameter_stat.c b/gtk/diameter_stat.c
index 11e380dbd3..b188da7ccc 100644
--- a/gtk/diameter_stat.c
+++ b/gtk/diameter_stat.c
@@ -93,6 +93,11 @@ diameterstat_packet(void *pdiameter, packet_info *pinfo, epan_dissect_t *edt _U_
diameterstat_t *fs=(diameterstat_t *)pdiameter;
int* idx = NULL;
+ /* Process only answers where corresponding request is found.
+ * Unpaired daimeter messages are currently not supported by statistics.
+ * Return 0, since redraw is not needed. */
+ if(!diameter || diameter->processing_request || !diameter->req_frame)
+ return 0;
idx = (int*) g_hash_table_lookup(cmd_str_hash, diameter->cmd_str);
if (idx == NULL) {