lower bound to length
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1024 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c
index c9d5148..d60d5bd 100644
--- a/skeletons/OCTET_STRING.c
+++ b/skeletons/OCTET_STRING.c
@@ -1267,7 +1267,10 @@
/* Get the PER length */
len_bits = uper_get_length(pd, ct->effective_bits, &repeat);
if(len_bits < 0) RETURN(RC_FAIL);
+ len_bits += ct->lower_bound;
+ ASN_DEBUG("Got per length eb %ld, len %ld",
+ ct->effective_bits, (long)len_bits);
if(unit_bits == 1) {
len_bytes = (len_bits + 7) >> 3;
if(len_bits & 0x7)