Let the dissector call its subdissectors, even when tree==NULL.

svn path=/trunk/; revision=26409
This commit is contained in:
Jaap Keuter 2008-10-10 17:55:51 +00:00
parent aefc1dc53e
commit 53708b2c85
1 changed files with 3 additions and 5 deletions

View 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);
}
}