Let the dissector call its subdissectors, even when tree==NULL.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Oct 2008 17:55:51 +0000 (17:55 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Oct 2008 17:55:51 +0000 (17:55 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26409 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-mp2t.c

index e3815b6466636b68fe0e855cbd5e35dbcc0c928c..a5f0587090f4d3dbf25388f6a9c02150efc9f9b4 100644 (file)
@@ -187,7 +187,7 @@ static const value_string mp2t_afc_vals[] = {
 };
 
 static gint
-dissect_tsp( tvbuff_t *tvb, gint offset, packet_info *pinfo _U_, proto_tree *tree ) 
+dissect_tsp( tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree )
 {
        guint32 header;
        guint afc;
@@ -434,10 +434,8 @@ dissect_mp2t( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
 {
        guint offset = 0;
 
-       if (tree) {
-               while ( tvb_reported_length_remaining(tvb, offset) >= MP2T_PACKET_SIZE ) {
-                       offset = dissect_tsp( tvb, offset, pinfo, tree);
-               }
+       while ( tvb_reported_length_remaining(tvb, offset) >= MP2T_PACKET_SIZE ) {
+               offset = dissect_tsp( tvb, offset, pinfo, tree);
        }
 }