From Didier Gautheron:
[obnox/wireshark/wip.git] / epan / dissectors / packet-stun.c
index 5fc777360f1fc57bd0f36ffb6f66af371780283a..f5c4232bcbb82a48dba70ef15d2413d1bf8dc26c 100644 (file)
@@ -566,9 +566,6 @@ dissect_stun_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                             msg_method_str, msg_class_str);
        }
 
-       if (!tree)
-               return tvb_length(tvb);
-
        ti = proto_tree_add_item(tree, proto_stun, tvb, 0, -1, FALSE);
 
        stun_tree = proto_item_add_subtree(ti, ett_stun);