Don't attempt to reassemble short (reported_len > len) chunks.

svn path=/trunk/; revision=35486
This commit is contained in:
Jeff Morriss 2011-01-11 22:41:19 +00:00
parent 6e7d85a92c
commit 1c5d75288c

View file

@ -2604,6 +2604,13 @@ dissect_fragmented_payload(tvbuff_t *payload_tvb, packet_info *pinfo, proto_tree
sctp_fragment* fragment;
tvbuff_t* new_tvb = NULL;
/*
* If this is a short frame, then we can't, and don't, do
* reassembly on it. We just give up.
*/
if (tvb_reported_length(payload_tvb) > tvb_length(payload_tvb))
return TRUE;
/* add fragement to list of known fragments. returns NULL if segment is a duplicate */
fragment = add_fragment(payload_tvb, pinfo, chunk_tree, tsn, stream_id, stream_seq_num, b_bit, e_bit);