aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-per.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-11-24 16:21:04 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-11-24 16:21:04 +0000
commit4d4283ef980216938480fbb6779b1d368a17647f (patch)
treea22f66e10f3d6e5cc6fd4b03a624cc18472ec9dd /epan/dissectors/packet-per.c
parent8fc5892e01f7760349ff7f4ed8ad21c3d130f454 (diff)
From Johannes Lange:
Bug 5393 - Wrong length calculation in new_octet_aligned_subset_bits() (PER dissector) . https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5393 svn path=/trunk/; revision=35021
Diffstat (limited to 'epan/dissectors/packet-per.c')
-rw-r--r--epan/dissectors/packet-per.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c
index 4b0069f725..9c4a120098 100644
--- a/epan/dissectors/packet-per.c
+++ b/epan/dissectors/packet-per.c
@@ -231,7 +231,7 @@ tvbuff_t *new_octet_aligned_subset_bits(tvbuff_t *tvb, guint32 boffset, asn1_ctx
/* The bits can be contained in two "extra octets" .... .xxx [xxxx]*n xx... ....*/
tvb_bits = (boffset & 7)+ no_of_bits;
check_length = tvb_bits/8;
- remainderval = no_of_bits % 8;
+ remainderval = tvb_bits % 8; /* not no_of_bits % 8 */
if(remainderval){
check_length++;
}