SIGCOMP: use correct message length
authorPascal Quantin <pascal.quantin@gmail.com>
Sun, 11 Feb 2018 19:52:42 +0000 (20:52 +0100)
committerMichael Mann <mmann78@netscape.net>
Mon, 12 Feb 2018 00:23:00 +0000 (00:23 +0000)
Since g2a80fe283c (2005-10-06!) length initialization was moved, and
the message length is no more correct (previously tvb_length_remaining()
was called with offset equal to 0, which is no more the case after the
change).

Bug: 14410
Change-Id: I2f00be83fa17ad7344d0d75f4a899f169d7a622b
Reviewed-on: https://code.wireshark.org/review/25735
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
epan/dissectors/packet-sigcomp.c

index 20ff5823fb312d4b66199974d4d05f57f707c27e..a05336b5b0cdfe64561f531f3b17b6b0b48cc55d 100644 (file)
@@ -4520,7 +4520,7 @@ dissect_sigcomp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *_
 
     col_clear(pinfo->cinfo, COL_INFO);
 
-    length = tvb_captured_length_remaining(tvb,offset);
+    length = tvb_reported_length(tvb);
 
 try_again:
     /* create display subtree for the protocol */