Check for valid docsis_handle, and use data_handle if not.
authorStig Bjørlykke <stig@bjorlykke.org>
Sun, 17 Apr 2011 17:47:39 +0000 (17:47 -0000)
committerStig Bjørlykke <stig@bjorlykke.org>
Sun, 17 Apr 2011 17:47:39 +0000 (17:47 -0000)
This fixes bug 5839.

svn path=/trunk/; revision=36681

epan/dissectors/packet-mp2t.c

index 0711d267506164c50690c81315bcff9744b66a3a..3119108c566ec563312c2a66e5a16d4a2b18b141 100644 (file)
@@ -417,7 +417,10 @@ mp2t_depi_docsis_process_payload(tvbuff_t *tvb, gint offset, packet_info *pinfo,
                     "DOCSIS MAC Frame: %u bytes", mac_frame_len);
                 dmpt_tree = proto_item_add_subtree(ti, ett_dmpt);
                 next_tvb = tvb_new_subset(tvb, offset, -1, -1);
-                call_dissector(docsis_handle, next_tvb, pinfo, dmpt_tree);
+                if (docsis_handle)
+                    call_dissector(docsis_handle, next_tvb, pinfo, dmpt_tree);
+                else
+                    call_dissector(data_handle, next_tvb, pinfo, dmpt_tree);
 
                 offset += mac_frame_len;
                 remaining_length -= mac_frame_len;