The branch, master has been updated
       via  537aa4cf51def606de6c73c429f97d12c76333b1 (commit)
      from  6f335036fda47a6903b21287824d88333d1b526f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 537aa4cf51def606de6c73c429f97d12c76333b1
Author: Tim Prouty <tpro...@samba.org>
Date:   Mon Jun 15 20:16:07 2009 +0000

    s3 onefs: Fix reading over the end of the array, because the incorrect 
array was being read.

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/onefs_config.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/onefs_config.c b/source3/modules/onefs_config.c
index 6fe74fc..aa0d99e 100644
--- a/source3/modules/onefs_config.c
+++ b/source3/modules/onefs_config.c
@@ -216,8 +216,9 @@ int onefs_load_config(connection_struct *conn)
 bool onefs_get_config(int snum, int config_type,
                      struct onefs_vfs_share_config *cfg)
 {
-       if (vfs_share_config[snum].init_flags & config_type)
-               *cfg = vfs_share_config[snum];
+       if ((pvfs_share_config != NULL) &&
+           (pvfs_share_config[snum].init_flags & config_type))
+               *cfg = pvfs_share_config[snum];
        else
                return false;
 


-- 
Samba Shared Repository

Reply via email to