Blame SOURCES/ip-6-tables-restore-Don-t-ignore-missing-wait-interv.patch

43df5c
From f5757357c0bb6b5df843d15b90f235190d3b4448 Mon Sep 17 00:00:00 2001
43df5c
From: Phil Sutter <psutter@redhat.com>
43df5c
Date: Fri, 11 May 2018 16:34:48 +0200
43df5c
Subject: [PATCH] ip{,6}tables-restore: Don't ignore missing wait-interval
43df5c
 value
43df5c
43df5c
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465078
43df5c
Upstream Status: iptables commit 60e0ffd365a2d
43df5c
43df5c
commit 60e0ffd365a2d936b3df13c1289b2ef57b756d92
43df5c
Author: Phil Sutter <phil@nwl.cc>
43df5c
Date:   Wed Sep 20 19:34:35 2017 +0200
43df5c
43df5c
    ip{,6}tables-restore: Don't ignore missing wait-interval value
43df5c
43df5c
    Passing -W without a value doesn't make sense so bail out if none was
43df5c
    given.
43df5c
43df5c
    Signed-off-by: Phil Sutter <phil@nwl.cc>
43df5c
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
43df5c
43df5c
Signed-off-by: Phil Sutter <psutter@redhat.com>
43df5c
---
43df5c
 iptables/xshared.c | 2 +-
43df5c
 1 file changed, 1 insertion(+), 1 deletion(-)
43df5c
43df5c
diff --git a/iptables/xshared.c b/iptables/xshared.c
43df5c
index 3fbe3b1a99b77..b8a81fd968361 100644
43df5c
--- a/iptables/xshared.c
43df5c
+++ b/iptables/xshared.c
43df5c
@@ -318,7 +318,7 @@ void parse_wait_interval(int argc, char *argv[], struct timeval *wait_interval)
43df5c
 	else if (xs_has_arg(argc, argv))
43df5c
 		arg = argv[optind++];
43df5c
 	else
43df5c
-		return;
43df5c
+		xtables_error(PARAMETER_PROBLEM, "wait interval value required");
43df5c
 
43df5c
 	ret = sscanf(arg, "%u", &usec);
43df5c
 	if (ret == 1) {
43df5c
-- 
43df5c
2.17.0
43df5c