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);