BER: fix There are identical sub-expressions 'tvb_reported_length_remaining(tvb,...
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sat, 6 Jun 2015 13:12:55 +0000 (15:12 +0200)
committerPascal Quantin <pascal.quantin@gmail.com>
Sat, 6 Jun 2015 14:03:54 +0000 (14:03 +0000)
Change-Id: I9e462461c66f2f3338a059b64dbc28682df94ae2
Reviewed-on: https://code.wireshark.org/review/8787
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
epan/dissectors/packet-ber.c

index a6533c66c4d838488cb9f0003f2fdb191a005c8a..fb237c492bd7b11555dc1d4d0ec39d576b72e367 100644 (file)
@@ -3358,7 +3358,7 @@ printf("SQ OF dissect_ber_sq_of(%s) entered\n", name);
      * dissecting a single item.
      */
     /* XXX Do we really need to count them at all ?  ronnie */
-    if (tvb_reported_length_remaining(tvb, offset) == tvb_reported_length_remaining(tvb, offset)) {
+    if (tvb_captured_length_remaining(tvb, offset) == tvb_reported_length_remaining(tvb, offset)) {
         have_cnt = TRUE;
         while (offset < end_offset) {
             guint32 len;