From 6cd01f6f8f5fe4a85d4df3febec4d9133e360b72 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 26 May 2014 15:20:01 +0200 Subject: removed unnecessary and wrong test. --- lib/decoding.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') 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)) -- cgit v1.2.3