summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/onefs_config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/onefs_config.c b/source3/modules/onefs_config.c
index 6fe74fc15b..aa0d99e81a 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;