There were a couple of cli paths that NULL-checked in the
vtysh output path, but not in the json path.
Signed-off-by: Mark Stapp <mjs@labn.net>
(cherry picked from commit
864a3bc1855ec8027fec8d6f400adb44e1ecbfcf)
rn = route_next(rn)) {
oi = rn->info;
+ if (oi == NULL)
+ continue;
+
if (use_json) {
json_interface_sub =
json_object_new_object();
rn = route_next(rn)) {
oi = rn->info;
+ if (oi == NULL)
+ continue;
+
if (use_json)
json_interface_sub =
json_object_new_object();
rn = route_next(rn)) {
oi = rn->info;
+ if (oi == NULL)
+ continue;
+
if (use_json) {
json_interface_sub =
json_object_new_object();