diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-10-09 07:24:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-10-09 07:24:33 +0000 |
commit | 4d2e653901ab7bb17c9ed3269a930569d8ada5eb (patch) | |
tree | 042347d5d4c01107ff02979c33de22a372f7ff69 /plugins/docsis/packet-dsareq.c | |
parent | 46aa5c44de5b62cc061840b29903a63bc3790445 (diff) |
From Didier Gautheron:
Dissectors using call_dissector() function inside a 'if (tree) {}' block.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4107
svn path=/trunk/; revision=30415
Diffstat (limited to 'plugins/docsis/packet-dsareq.c')
-rw-r--r-- | plugins/docsis/packet-dsareq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/docsis/packet-dsareq.c b/plugins/docsis/packet-dsareq.c index e323663a1b..acdd0c5deb 100644 --- a/plugins/docsis/packet-dsareq.c +++ b/plugins/docsis/packet-dsareq.c @@ -45,7 +45,7 @@ dissect_dsareq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) { proto_item *it; - proto_tree *dsareq_tree; + proto_tree *dsareq_tree = NULL; guint16 transid; tvbuff_t *next_tvb; @@ -67,10 +67,10 @@ dissect_dsareq (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_tree_add_item (dsareq_tree, hf_docsis_dsareq_tranid, tvb, 0, 2, FALSE); - /* Call Dissector for Appendix C TLV's */ - next_tvb = tvb_new_subset_remaining (tvb, 2); - call_dissector (docsis_tlv_handle, next_tvb, pinfo, dsareq_tree); } + /* Call Dissector for Appendix C TLV's */ + next_tvb = tvb_new_subset_remaining (tvb, 2); + call_dissector (docsis_tlv_handle, next_tvb, pinfo, dsareq_tree); } |