summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 15:16:24 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-04 15:20:51 +0100
commitc27c19c3c419280870e3de498d3b44f602368a3c (patch)
tree3dcc70a01e9a2d98e307513f414be0208c4ab4dc
parentccf08708c8c55ee25cd7e47b803b262576fe17c5 (diff)
downloadlibtasn1-c27c19c3c419280870e3de498d3b44f602368a3c.tar.gz
doc update
-rw-r--r--lib/decoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index 2293eed..2ccd1a3 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -2258,7 +2258,7 @@ asn1_decode_simple_ber (unsigned int etype, const unsigned char *der,
p += tmp_len;
der_len -= tmp_len;
- if (der_len < 2)
+ if (der_len < 2) /* we need the EOC */
{
free(total);
return ASN1_DER_ERROR;