summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-05-26 15:20:01 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-05-26 15:20:01 +0200
commit6cd01f6f8f5fe4a85d4df3febec4d9133e360b72 (patch)
tree6e6c840a08d3bb40e09444ef986402778e919beb /lib
parentf09f2b9e497d0597f3372014838df08f81f653b4 (diff)
downloadlibtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.tar.gz
libtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.tar.bz2
libtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.zip
removed unnecessary and wrong test.
Diffstat (limited to 'lib')
-rw-r--r--lib/decoding.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/decoding.c b/lib/decoding.c
index affffed..a9aecc2 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -738,9 +738,6 @@ _asn1_get_octet_string (asn1_node node, const unsigned char *der, int der_len, i
while (1)
{
- if (counter > der_len)
- return ASN1_DER_ERROR;
-
if (indefinite == -1)
{
if (HAVE_TWO(der_len) && (der[counter] == 0) && (der[counter + 1] == 0))