[fence-virt/f16] Fix uninitialized delay variable

Ryan McCabe rmccabe at fedoraproject.org
Fri Oct 26 00:44:33 UTC 2012


commit 748e20b00fb098143e97db226e049642f8a6039a
Author: Ryan McCabe <rmccabe at redhat.com>
Date:   Thu Oct 25 20:44:07 2012 -0400

    Fix uninitialized delay variable

 Explicitly-set-delay-to-0.patch |   28 ++++++++++++++++++++++++++++
 fence-virt.spec                 |    7 ++++++-
 2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/Explicitly-set-delay-to-0.patch b/Explicitly-set-delay-to-0.patch
new file mode 100644
index 0000000..6818dea
--- /dev/null
+++ b/Explicitly-set-delay-to-0.patch
@@ -0,0 +1,28 @@
+From 0c502aad7743ade8a6c2eeec780f36f61d312f4c Mon Sep 17 00:00:00 2001
+From: Ryan McCabe <rmccabe at redhat.com>
+Date: Wed, 17 Oct 2012 12:54:55 -0400
+Subject: [PATCH] fence-virt: Explicitly set delay to 0
+
+Explicitly set the delay argument to 0 when initializing the args
+struct.
+
+Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
+---
+ client/options.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/client/options.c b/client/options.c
+index cd975ae..40c6587 100644
+--- a/client/options.c
++++ b/client/options.c
+@@ -590,6 +590,7 @@ args_init(fence_virt_args_t *args)
+ 	args->retr_time = 20;
+ 	args->flags = 0;
+ 	args->debug = 0;
++	args->delay = 0;
+ }
+ 
+ 
+-- 
+1.7.11.7
+
diff --git a/fence-virt.spec b/fence-virt.spec
index 4d82849..65d881a 100644
--- a/fence-virt.spec
+++ b/fence-virt.spec
@@ -1,6 +1,6 @@
 Name:		fence-virt
 Version:	0.3.0
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	A pluggable fencing framework for virtual machines
 Group:		System Environment/Base
 License:	GPLv2+
@@ -11,6 +11,7 @@ Patch1: add-a-delay-w-option.patch
 Patch2: Improve-fence_virt.conf-man-page-description-of-hash.patch
 Patch3: Return-failure-for-nonexistent-domains.patch
 Patch4: Fix-typo-in-fence_virt-8-man-page.patch
+Patch5: Explicitly-set-delay-to-0.patch
 
 BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
@@ -93,6 +94,7 @@ to track VMs across multiple hosts.
 %patch2 -p1 -b .Improve-fence_virt.conf-man-page-description-of-hash
 %patch3 -p1 -b .Return-failure-for-nonexistent-domains
 %patch4 -p1 -b .Fix-typo-in-fence_virt-8-man-page
+%patch5 -p1 -b .Explicitly-set-delay-to-0
 
 
 %build
@@ -182,6 +184,9 @@ fi
 
 
 %changelog
+* Mon Oct 25 2012 Ryan McCabe <rmccabe at redhat.com> - 0.3.0-3
+- Fix uninitialized delay variable
+
 * Mon Oct 15 2012 Ryan McCabe <rmccabe at redhat.com> - 0.3.0-2
 - Add a -w (delay) option.
 - Return failure when attempting to fence a nonexistent domain


More information about the scm-commits mailing list