The length field for HPFEEDS is 4 bytes, so actually get the whole
thing from the tvb.

svn path=/trunk/; revision=48832
This commit is contained in:
Evan Huus 2013-04-12 16:27:20 +00:00
parent 374c1dd1e3
commit 59851d0ab7
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ dissect_hpfeeds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return;
/* get message length in order to decide if we need to reassemble packet */
msglen = tvb_get_guint8(tvb, offset);
msglen = tvb_get_ntohl(tvb, offset);
/* Retrieve header data */
if (tree) {
@ -320,7 +320,7 @@ dissect_hpfeeds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(hpfeeds_tree, hf_hpfeeds_msg_length, tvb, offset,
4, ENC_BIG_ENDIAN);
}
if (tvb_reported_length(tvb) < msglen) {
/* we need to reassemble */
tcp_dissect_pdus(tvb, pinfo, hpfeeds_tree, hpfeeds_desegment, 5,