asn1: Fix dumb bug in JSON printing

This commit is contained in:
Nicolas Williams
2021-03-06 01:01:51 -06:00
parent 88a4c6f444
commit 94a7483243

View File

@@ -2385,7 +2385,7 @@ _asn1_print_open_type(const struct asn1_template *t, /* object set template */
r = rk_strpoolprintf(r, ",%s\"_%s_choice\":\"%s\"",
indents ? indents : "", opentype_name,
(const char *)tos[3*(*elementp - 1) + 2].ptr);
(const char *)tactual_type);
if (!r) {
free(indents);
return r;