aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hpfeeds.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-01 13:24:24 +0000
committerEvan Huus <eapache@gmail.com>2013-03-01 13:24:24 +0000
commitba18b3d7d90334f074b3618449edbb9b23ff5989 (patch)
tree77195a026effa909c85fdfd7f41322b08e593330 /epan/dissectors/packet-hpfeeds.c
parent3478c66464da6a4f6360c5f6fd13cc82edd4b1f4 (diff)
Addendum to r47962, caught by Jakub Zawadzki via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8379 Respect the offset given us by TCP when fetching PDU len. svn path=/trunk/; revision=47974
Diffstat (limited to 'epan/dissectors/packet-hpfeeds.c')
-rw-r--r--epan/dissectors/packet-hpfeeds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-hpfeeds.c b/epan/dissectors/packet-hpfeeds.c
index 4efd91a669..8830452c6a 100644
--- a/epan/dissectors/packet-hpfeeds.c
+++ b/epan/dissectors/packet-hpfeeds.c
@@ -184,9 +184,9 @@ dissect_hpfeeds_subscribe_pdu(tvbuff_t *tvb, proto_tree *tree, guint offset)
* by the routine to re-assemble the protocol spread on multiple TCP packets
*/
static guint
-get_hpfeeds_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset _U_)
+get_hpfeeds_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
{
- return tvb_get_ntohl(tvb, 0);
+ return tvb_get_ntohl(tvb, offset);
}
static void