diff options
author | Balint Reczey <balint@balintreczey.hu> | 2016-06-15 15:40:15 -0700 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2016-06-15 23:19:56 +0000 |
commit | 1708e2eb042f3511a2a02dbf7f6fbb22afe51e2d (patch) | |
tree | bb4f6336d29debeb0b265bce2a1719c9715b4901 /ui/gtk | |
parent | fb38049f4d25b4d3b2e2a86723df3ffa6e553e56 (diff) |
gtk: Fix null dereference in stats
This fixes the bug reported to Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786704
Change-Id: Iabe19c11067318d78664a17fa00d6a4d1998250c
Reviewed-on: https://code.wireshark.org/review/15948
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/stats_tree_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/stats_tree_stat.c b/ui/gtk/stats_tree_stat.c index f421e1b693..7979540f7f 100644 --- a/ui/gtk/stats_tree_stat.c +++ b/ui/gtk/stats_tree_stat.c @@ -345,7 +345,7 @@ clear_node_pr(stat_node* n) clear_node_pr(c); } - if (n->pr->iter) { + if (n->pr && n->pr->iter) { gtk_tree_store_remove(n->st->pr->store, n->pr->iter); n->pr->iter = NULL; } |