aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-12-17 12:02:35 +0000
committerLev Walkin <vlm@lionet.info>2005-12-17 12:02:35 +0000
commit1d5f0f24aebabd983d82349651eb8ba3f4138329 (patch)
tree15179621ec1c0c1b4662f71e60d81afc5b559e28 /skeletons
parent7b284818e9671f6427ee9580ddf43b74fa017df3 (diff)
lower bound to length
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/OCTET_STRING.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c
index c9d51487..d60d5bdf 100644
--- a/skeletons/OCTET_STRING.c
+++ b/skeletons/OCTET_STRING.c
@@ -1267,7 +1267,10 @@ OCTET_STRING_decode_uper(asn_codec_ctx_t *opt_codec_ctx,
/* 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)