diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-09 09:58:34 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-09 09:58:34 +0200 |
commit | 8c34df998d95dd17f6349e4032aa84f5945d3a5e (patch) | |
tree | 32dc65765eeb8224eef6ab7bbe3a38f315b102dd /lib | |
parent | c7effec4b878feff6f74ae58ef5d57fdcaa6d843 (diff) | |
download | libtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.tar.gz libtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.tar.bz2 libtasn1-8c34df998d95dd17f6349e4032aa84f5945d3a5e.zip |
decoding: corrected the end position of the total structure.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding.c | 2 |
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)) { |