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

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