]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fix usage of JSON_C_TO_STRING_NOSLASHESCAPE
authorDonald Sharp <sharpd@nvidia.com>
Tue, 7 Sep 2021 13:36:39 +0000 (09:36 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 7 Sep 2021 13:36:39 +0000 (09:36 -0400)
commite77564ccd44aa527c7a26f1642bd8e8f5a5f724a
treef43662aa0d16e106239c250f334fe169b25792e9
parentb44f7c3f6d26ab3cbeb31432c3262735f5ccf379
ospfd: Fix usage of JSON_C_TO_STRING_NOSLASHESCAPE

The usage of json_object_to_json_string_ext is meant for
generation of output string and returns a `char *` pointer
to the `formatted` output.  Just calling it does nothing
and it's expensive to boot.

Modify the code in ospfd to just output with the NOSLASHESCAPE
when outputting.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_vty.c