summaryrefslogtreecommitdiffstats
path: root/ip6tables-standalone.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6tables-standalone.c')
-rw-r--r--ip6tables-standalone.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/ip6tables-standalone.c b/ip6tables-standalone.c
index c0ca6459..649ac3d8 100644
--- a/ip6tables-standalone.c
+++ b/ip6tables-standalone.c
@@ -68,10 +68,16 @@ main(int argc, char *argv[])
ip6tc_free(handle);
}
- if (!ret)
- fprintf(stderr, "ip6tables: %s. "
- "Run `dmesg' for more information.\n",
- ip6tc_strerror(errno));
+ if (!ret) {
+ if (errno == EINVAL) {
+ fprintf(stderr, "ip6tables: %s. "
+ "Run `dmesg' for more information.\n",
+ ip6tc_strerror(errno));
+ } else {
+ fprintf(stderr, "ip6tables: %s.\n",
+ ip6tc_strerror(errno));
+ }
+ }
exit(!ret);
}