summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPetr Medonos <petr.medonos@etnetera.cz>2014-11-17 12:37:25 +0100
committerKaushal M <kaushal@redhat.com>2014-12-01 19:51:51 -0800
commit24581a58e897a415dfcc96f65c41d82d0f1fb49a (patch)
tree4fabd56f973cf117128208137914fc0a977897e1 /xlators
parenteee41566697583f74784d9f9ff78651535d6eb91 (diff)
mgmt/glusterd: Out of bounds access to fs_info struct
Change-Id: Ifa0d4ac17f9da94660a7b7f567a0f07b5cec7aec BUG: 1164775 Signed-off-by: Petr Medonos <petr.medonos@etnetera.cz> Reviewed-on: http://review.gluster.org/9138 Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index d8b7e78a340..594e8bfa70c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -7319,7 +7319,7 @@ glusterd_add_inode_size_to_dict (dict_t *dict, int count)
runinit (&runner);
runner_redir (&runner, STDOUT_FILENO, RUN_PIPE);
- for (fs = glusterd_fs ; glusterd_fs->fs_type_name; fs++) {
+ for (fs = glusterd_fs ; fs->fs_type_name; fs++) {
if (strcmp (fs_name, fs->fs_type_name) == 0) {
snprintf (fs_tool_name, sizeof (fs_tool_name),
"/usr/sbin/%s", fs->fs_tool_name);