Fix references to ntvfs share config
[jelmer/samba4-debian.git] / source / ntvfs / common / opendb_tdb.c
index 40a1d27f3016966692eaf1c7663e7328ac013b98..99c0a95c20a4cac21853e6b50cd1a6f9b5e60af7 100644 (file)
@@ -101,7 +101,7 @@ static struct odb_context *odb_tdb_init(TALLOC_CTX *mem_ctx,
 
        odb->ntvfs_ctx = ntvfs_ctx;
 
-       odb->oplocks = share_bool_option(ntvfs_ctx->ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
+       odb->oplocks = share_bool_option(ntvfs_ctx->config, SHARE_OPLOCKS, SHARE_OPLOCKS_DEFAULT);
 
        odb->lease_ctx = sys_lease_context_create(ntvfs_ctx->config, odb,
                                                  ntvfs_ctx->event_ctx,