diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-21 11:03:30 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-21 11:03:30 +0000 |
commit | 27f7d88c840a704b1b41324ace2e0fd3c2806857 (patch) | |
tree | 924290365ef9fa9081ef7aede148bdd47a51aeb0 /proto_hier_stats.c | |
parent | 1108352f008b3fb0e53c56110edc71af507734b0 (diff) | |
download | wireshark-27f7d88c840a704b1b41324ace2e0fd3c2806857.tar.gz |
Also fake empty field_info's by gracefully handling NULL field_info pointer elsewhere.
svn path=/trunk/; revision=29490
Diffstat (limited to 'proto_hier_stats.c')
-rw-r--r-- | proto_hier_stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/proto_hier_stats.c b/proto_hier_stats.c index edbad8c265..de8510e67c 100644 --- a/proto_hier_stats.c +++ b/proto_hier_stats.c @@ -86,7 +86,8 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps, gu GNode *stat_node; finfo = PNODE_FINFO(ptree_node); - g_assert(finfo); + /* We don't fake protocol nodes we expect them to have a field_info */ + g_assert(finfo && "dissection with faked proto tree?"); /* If the field info isn't related to a protocol but to a field, * don't count them, as they don't belong to any protocol. |