diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-03-03 13:59:52 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-03-03 13:59:52 +0000 |
commit | 5ef5e774348b8bb33c6bba1818baf9c79aa47b5c (patch) | |
tree | a10249797b9686a3f3d206f664891899ae5b81cc /epan/dissectors/packet-rmcp.c | |
parent | fa7eb4fdebd161730e93c72718f364a43ea2c068 (diff) |
From Francisco Alcoba,
do not look for data blocks in ACK packets
svn path=/trunk/; revision=13581
Diffstat (limited to 'epan/dissectors/packet-rmcp.c')
-rw-r--r-- | epan/dissectors/packet-rmcp.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/epan/dissectors/packet-rmcp.c b/epan/dissectors/packet-rmcp.c index eb03f595b8..3c2de464cb 100644 --- a/epan/dissectors/packet-rmcp.c +++ b/epan/dissectors/packet-rmcp.c @@ -23,7 +23,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ @@ -131,11 +131,14 @@ dissect_rmcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(field_tree, hf_rmcp_type, tvb, 3, 1, TRUE); } - next_tvb = tvb_new_subset(tvb, 4, -1, -1); + if (!type){ /* do not expect a data block for an ACK */ - if (!dissector_try_port(rmcp_dissector_table, class, next_tvb, pinfo, - tree)) - call_dissector(data_handle, next_tvb, pinfo, tree); + next_tvb = tvb_new_subset(tvb, 4, -1, -1); + + if (!dissector_try_port(rmcp_dissector_table, class, next_tvb, pinfo, + tree)) + call_dissector(data_handle, next_tvb, pinfo, tree); + } return tvb_length(tvb); } |