summaryrefslogtreecommitdiff
path: root/lib/element.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-02-08 17:49:58 +0000
committerSimon Josefsson <simon@josefsson.org>2006-02-08 17:49:58 +0000
commit7067a6217809bee767a4cbbf7e07affe5a02a045 (patch)
treec2958133f5a6fbfe178fe242399732b10590143b /lib/element.c
parentb3349014758157ee2929b0b6e15fbd74f5c39bc2 (diff)
downloadlibtasn1-7067a6217809bee767a4cbbf7e07affe5a02a045.tar.gz
libtasn1-7067a6217809bee767a4cbbf7e07affe5a02a045.tar.bz2
libtasn1-7067a6217809bee767a4cbbf7e07affe5a02a045.zip
Update _asn1_get_length_der fix.
Diffstat (limited to 'lib/element.c')
-rw-r--r--lib/element.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/element.c b/lib/element.c
index 35ae24f..829a1f4 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -1,6 +1,6 @@
/*
+ * Copyright (C) 2004, 2006 Free Software Foundation
* Copyright (C) 2000, 2001, 2002, 2003 Fabio Fiorina
- * Copyright (C) 2004 Simon Josefsson
*
* This file is part of LIBASN1.
*
@@ -725,6 +725,7 @@ asn1_read_value(ASN1_TYPE root,const char *name,void* ivalue, int *len)
case TYPE_ANY:
len3=-1;
len2=_asn1_get_length_der(node->value,node->value_len,&len3);
+ if (len2 < 0) return ASN1_DER_ERROR;
PUT_VALUE( value, value_size, node->value+len3, len2);
break;
default: