From ff571d52a0778985aa6b67d0654e901a3e18cd82 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Sat, 6 Mar 2021 14:46:21 -0600 Subject: [PATCH] asn1: Fix JSON printing bug --- lib/asn1/template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/asn1/template.c b/lib/asn1/template.c index b6ed1cfe7..3b166c5f0 100644 --- a/lib/asn1/template.c +++ b/lib/asn1/template.c @@ -2380,6 +2380,7 @@ _asn1_print_open_type(const struct asn1_template *t, /* object set template */ r = rk_strpoolprintf(r, ",%s\"_%s_choice\":\"_ERROR_DECODING_\"", indents ? indents : "", opentype_name); free(indents); + return r; } tactual_type = tos[3*(*elementp - 1) + 4].ptr;