summaryrefslogtreecommitdiffstats
path: root/src/libnftables.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnftables.c')
-rw-r--r--src/libnftables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnftables.c b/src/libnftables.c
index e892083f..2f67bb34 100644
--- a/src/libnftables.c
+++ b/src/libnftables.c
@@ -467,6 +467,8 @@ err:
}
free(nlbuf);
+ if (!rc && nft->output.json && nft->output.echo)
+ json_print_echo(nft);
return rc;
}
@@ -506,6 +508,8 @@ err:
nft->scanner = NULL;
}
+ if (!rc && nft->output.json && nft->output.echo)
+ json_print_echo(nft);
return rc;
}