From: Dr. Stephen Henson Date: Wed, 11 Mar 2015 23:30:52 +0000 (+0000) Subject: ASN.1 print fix. X-Git-Tag: OpenSSL_1_0_2a~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8cd671408401eff07a53c6051de86077f7a584b1;p=oweals%2Fopenssl.git ASN.1 print fix. 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 (cherry picked from commit 5dc1247a7494f50c88ce7492518bbe0ce6f124fa) --- diff --git a/crypto/asn1/tasn_prn.c b/crypto/asn1/tasn_prn.c index 4866dcd193..7c54f9d1d4 100644 --- a/crypto/asn1/tasn_prn.c +++ b/crypto/asn1/tasn_prn.c @@ -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: