Blame SOURCES/bz1204873-fix_delay_parameter_checking_copy_paste.patch

e51146
From f49a7d68d5fecf781bae55056f2e7d02bddd47d7 Mon Sep 17 00:00:00 2001
e51146
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
e51146
Date: Mon, 23 Mar 2015 17:14:25 +0100
e51146
Subject: [PATCH] client: fix "delay" parameter checking (copy-paste)
e51146
MIME-Version: 1.0
e51146
Content-Type: text/plain; charset=UTF-8
e51146
Content-Transfer-Encoding: 8bit
e51146
e51146
Resolves: rhbz#1204873
e51146
e51146
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
e51146
---
e51146
 client/options.c | 2 +-
e51146
 1 file changed, 1 insertion(+), 1 deletion(-)
e51146
e51146
diff --git a/client/options.c b/client/options.c
e51146
index a44c15f..a20e09f 100644
e51146
--- a/client/options.c
e51146
+++ b/client/options.c
e51146
@@ -336,7 +336,7 @@ assign_delay(fence_virt_args_t *args, struct arg_info *arg, char *value)
e51146
 		return;
e51146
 
e51146
 	args->delay = atoi(value);
e51146
-	if (args->timeout <= 0) {
e51146
+	if (args->delay <= 0) {
e51146
 		printf("Invalid delay: '%s'\n", value);
e51146
 		args->flags |= F_ERR;
e51146
 	}
e51146
-- 
e51146
2.5.5
e51146