aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 02:07:02 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-23 02:07:02 +0000
commit166d893b55b9d2e7bd01f772c38a0be99acd225a (patch)
tree1fed857047561c510be7a6c1d8ddc4063712d630 /epan/dissectors/packet-wsp.c
parente0f15fbdb7f534fe31dbaad05cfdeb28dc4219de (diff)
avoid a crash when tree is null
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15008 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r--epan/dissectors/packet-wsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c
index a79085bf4b..11bd53e5e2 100644
--- a/epan/dissectors/packet-wsp.c
+++ b/epan/dissectors/packet-wsp.c
@@ -2121,7 +2121,8 @@ add_content_type(proto_tree *tree, tvbuff_t *tvb, guint32 val_start,
So we have to disable that one and become "slow" by pretending that
the tree is "visible".
*/
- PTREE_DATA(tree)->visible=1;
+ if (tree)
+ PTREE_DATA(tree)->visible=1;
*textual_content = NULL;
*well_known_content = 0;