summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 09:58:34 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 09:58:34 +0200
commit8c34df998d95dd17f6349e4032aa84f5945d3a5e (patch)
tree32dc65765eeb8224eef6ab7bbe3a38f315b102dd
parentc7effec4b878feff6f74ae58ef5d57fdcaa6d843 (diff)
downloadlibtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.tar.gz
libtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.tar.bz2
libtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.zip
decoding: corrected the end position of the total structure.
-rw-r--r--lib/decoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index f3ac191..f5a8fca 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -982,7 +982,7 @@ asn1_der_decoding (asn1_node * element, const void *ider, int ider_len,
/* the position in the DER structure this starts */
p->start = counter;
- p->end = total_len;
+ p->end = total_len - 1;
if ((p->type & CONST_OPTION) || (p->type & CONST_DEFAULT))
{