Don't indicate errors during initial adb decode.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 5 Jul 2016 22:24:26 +0000 (23:24 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 6 Jul 2016 01:41:55 +0000 (02:41 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit b385889640517531a9cfeb672b15db7089b1bbb8)

crypto/asn1/tasn_dec.c

index 6b01f653572ca5c52550e48f76a8298bc864e8f2..d25402730b8b9d8059d43d83b60b6f3958936128 100644 (file)
@@ -400,7 +400,7 @@ int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
             if (tt->flags & ASN1_TFLG_ADB_MASK) {
                 const ASN1_TEMPLATE *seqtt;
                 ASN1_VALUE **pseqval;
-                seqtt = asn1_do_adb(pval, tt, 1);
+                seqtt = asn1_do_adb(pval, tt, 0);
                 if (seqtt == NULL)
                     continue;
                 pseqval = asn1_get_field_ptr(pval, seqtt);