Fix references to ntvfs share config
[gd/samba/.git] / source4 / cluster / ctdb / opendb_ctdb.c
index f0366ceb4978f0a2ffac061b85c7a50f4bed08bd..ed09cf0bbcc9efd0e1a00f58a5c12cc02ae8c126 100644 (file)
@@ -97,7 +97,7 @@ static struct odb_context *odb_ctdb_init(TALLOC_CTX *mem_ctx,
        odb->ntvfs_ctx = ntvfs_ctx;
 
        /* leave oplocks disabled by default until the code is working */
-       odb->oplocks = share_bool_option(ntvfs->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
+       odb->oplocks = share_bool_option(ntvfs_ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
 
        return odb;
 }