diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-05-26 15:20:01 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-05-26 15:20:01 +0200 |
commit | 6cd01f6f8f5fe4a85d4df3febec4d9133e360b72 (patch) | |
tree | 6e6c840a08d3bb40e09444ef986402778e919beb /lib/decoding.c | |
parent | f09f2b9e497d0597f3372014838df08f81f653b4 (diff) | |
download | libtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.tar.gz libtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.tar.bz2 libtasn1-6cd01f6f8f5fe4a85d4df3febec4d9133e360b72.zip |
removed unnecessary and wrong test.
Diffstat (limited to 'lib/decoding.c')
-rw-r--r-- | lib/decoding.c | 3 |
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)) |