From b4b5d007123aa81eac745a7f48f16d8efc529c3c Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sun, 17 Nov 2013 17:00:11 +0000 Subject: Fix the number of highlighted bytes in case of unaligned PER constrained integer svn path=/trunk/; revision=53400 --- epan/dissectors/packet-per.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-per.c') diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c index ea9e8c775c..a4d6eef7c2 100644 --- a/epan/dissectors/packet-per.c +++ b/epan/dissectors/packet-per.c @@ -1271,7 +1271,7 @@ DEBUG_ENTRY("dissect_per_constrained_integer"); i = i-1; num_bits = i; - length=1; + length=(num_bits+7)>>3; if(range<=2){ num_bits=1; } -- cgit v1.2.3