Use correct reported_length for a tvb_new_subset() (not that it makes a difference...
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Dec 2011 03:44:23 +0000 (03:44 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Dec 2011 03:44:23 +0000 (03:44 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40257 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-http.c

index 5392146f085911287d46aa95c44bfc55329b9565..5ac17ea857f2fd564a67ca61ab00c976c7494c39 100644 (file)
@@ -1527,8 +1527,7 @@ chunked_encoding_dissector(tvbuff_t **tvb_ptr, packet_info *pinfo,
                            chunk_offset - offset, "Chunk size: %u octets",
                            chunk_size);
 
-                       data_tvb = tvb_new_subset(tvb, chunk_offset, chunk_size,
-                           datalen);
+                       data_tvb = tvb_new_subset(tvb, chunk_offset, chunk_size, chunk_size);
 
 
                        /*