summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Medonos <petr.medonos@etnetera.cz>2014-11-14 11:02:49 +0100
committerRaghavendra Bhat <raghavendra@redhat.com>2014-12-12 22:14:11 -0800
commit1fd6c9cd343661d07cd98052a9966ada556339d2 (patch)
treec5483b9b21f598f1864a723ef9413993b886d156
parent52df13da57a6aac1b5c6b37d26d39a4d2cd4ec42 (diff)
mgmt/glusterd: Out of bounds access to fs_info struct
Change-Id: Ibc75713d35c9cbafd493c8cf6b5294eaf29f05d4 BUG: 1163920 Signed-off-by: Petr Medonos <petr.medonos@etnetera.cz> Reviewed-on: http://review.gluster.org/9126 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-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 020187c..30d885c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -7293,7 +7293,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);