]> granicus.if.org Git - openssl/commitdiff
ASN.1 print fix.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 11 Mar 2015 23:30:52 +0000 (23:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 12 Mar 2015 13:31:43 +0000 (13:31 +0000)
When printing out an ASN.1 structure if the type is an item template don't
fall thru and attempt to interpret as a primitive type.

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/asn1/tasn_prn.c

index 2626de9728e74dda0b3fd1e1d567ebdb4bdf8eca..d8450b39b0dce389a4229bdb5466c4c3ab2f78c2 100644 (file)
@@ -220,6 +220,7 @@ static int asn1_item_print_ctx(BIO *out, ASN1_VALUE **fld, int indent,
             if (!asn1_template_print_ctx(out, fld, indent,
                                          it->templates, pctx))
                 return 0;
+            break;
         }
         /* fall thru */
     case ASN1_ITYPE_MSTRING: