From 56b60a1a40022b651091933200dbefd087e32805 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 28 Mar 2022 16:08:39 -0500 Subject: [PATCH] asn1: Fix printing of decorated types --- lib/asn1/template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/asn1/template.c b/lib/asn1/template.c index 7a19e7477..31eb66004 100644 --- a/lib/asn1/template.c +++ b/lib/asn1/template.c @@ -2549,7 +2549,9 @@ _asn1_print(const struct asn1_template *t, } default: break; } - if (nnames) + if (nnames && + (t->tt & A1_OP_MASK) != A1_OP_TYPE_DECORATE_EXTERN && + (t->tt & A1_OP_MASK) != A1_OP_TYPE_DECORATE) r = rk_strpoolprintf(r, ",%s\"%s\":", indents ? indents : "", (const char *)(tnames++)->ptr);