diff options
Diffstat (limited to 'iptables/ip6tables-restore.c')
-rw-r--r-- | iptables/ip6tables-restore.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c index eaa2bcbc..47310f20 100644 --- a/iptables/ip6tables-restore.c +++ b/iptables/ip6tables-restore.c @@ -273,6 +273,11 @@ int ip6tables_restore_main(int argc, char *argv[]) } else in = stdin; + if (!wait_interval.tv_sec && !wait) { + fprintf(stderr, "Option --wait-interval requires option --wait\n"); + exit(1); + } + /* Grab standard input. */ while (fgets(buffer, sizeof(buffer), in)) { int ret = 0; |