30 lines
968 B
Diff
30 lines
968 B
Diff
|
From 5e069a534379611e08714ac81870af6b387a4038 Mon Sep 17 00:00:00 2001
|
||
|
From: David Teigland <teigland@redhat.com>
|
||
|
Date: Thu, 16 Aug 2012 11:29:43 -0500
|
||
|
Subject: [PATCH] dlm_controld: fix uninitialized mem for fence_all config
|
||
|
|
||
|
If the fence_all config option is used, this could cause
|
||
|
unfencing to be used when it shouldn't, which could cause
|
||
|
startup to fail.
|
||
|
|
||
|
Signed-off-by: David Teigland <teigland@redhat.com>
|
||
|
---
|
||
|
dlm_controld/fence_config.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/dlm_controld/fence_config.c b/dlm_controld/fence_config.c
|
||
|
index 66a1ad6..5d8d7dc 100644
|
||
|
--- a/dlm_controld/fence_config.c
|
||
|
+++ b/dlm_controld/fence_config.c
|
||
|
@@ -251,6 +251,7 @@ int fence_config_init(struct fence_config *fc, unsigned int nodeid, char *path)
|
||
|
rv = -ENOMEM;
|
||
|
goto out;
|
||
|
}
|
||
|
+ memset(dev, 0, sizeof(struct fence_device));
|
||
|
|
||
|
rv = sscanf(line, "%s %s %[^\n]s\n", dev->name, dev->agent, dev->args);
|
||
|
if (rv < 2) {
|
||
|
--
|
||
|
1.7.10.1.362.g242cab3
|
||
|
|