summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))