_asn1_decode_simple_ber: allow empty fields
Allow empty subcomponents of BER OCTET STRINGS. These
are not prohibited by BER.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
diff --git a/lib/decoding.c b/lib/decoding.c
index 6cc6a3f..85f6b2a 100644
--- a/lib/decoding.c
+++ b/lib/decoding.c
@@ -2338,13 +2338,6 @@
goto cleanup;
}
- if (out_len == 0)
- {
- warn();
- result = ASN1_DER_ERROR;
- goto cleanup;
- }
-
result = append(&total, &total_size, cout, out_len);
if (result != ASN1_SUCCESS)
{