Get the NEXT protocol not the previous top one.

Change-Id: I261a740cbc369d905c89236b5173944e2780af59
Reviewed-on: https://code.wireshark.org/review/751
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
AndersBroman 2014-03-20 15:40:59 +01:00 committed by Anders Broman
parent 0513b29b8b
commit ffe7134b18
1 changed files with 4 additions and 2 deletions

View File

@ -3088,8 +3088,9 @@ dissect_fragmented_payload(tvbuff_t *payload_tvb, packet_info *pinfo, proto_tree
const gchar *proto_name;
gboolean retval;
cur = wmem_list_tail(pinfo->layers);
retval = dissect_payload(new_tvb, pinfo, tree, ppi);
cur = wmem_list_frame_prev(wmem_list_tail(pinfo->layers));
cur = wmem_list_frame_next(cur);
proto_id = GPOINTER_TO_UINT(wmem_list_frame_data(cur));
proto_name = proto_get_protocol_filter_name(proto_id);
if(strcmp(proto_name, "data") != 0){
@ -3243,8 +3244,9 @@ dissect_data_chunk(tvbuff_t *chunk_tvb,
guint proto_id;
const gchar *proto_name;
cur = wmem_list_tail(pinfo->layers);
retval = dissect_payload(payload_tvb, pinfo, tree, payload_proto_id);
cur = wmem_list_frame_prev(wmem_list_tail(pinfo->layers));
cur = wmem_list_frame_next(cur);
proto_id = GPOINTER_TO_UINT(wmem_list_frame_data(cur));
proto_name = proto_get_protocol_filter_name(proto_id);
if(strcmp(proto_name, "data") != 0){