From 8c34df998d95dd17f6349e4032aa84f5945d3a5e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 9 Jun 2014 09:58:34 +0200 Subject: decoding: corrected the end position of the total structure. --- lib/decoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3