Blame SOURCES/bz1204873-fix_delay_parameter_checking_copy_paste.patch

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