summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-21 08:29:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:16 -0500
commit8b4da058bcc49a91b332d2999a34e0bb45e0f680 (patch)
tree1fbe33459c6f256d72584da858b7942dbd1cb079
parent017855b766892090837791822f7380a32c30480d (diff)
downloadsamba-8b4da058bcc49a91b332d2999a34e0bb45e0f680.tar.gz
r15768: make it possible that the caller of the ntvfs_subsystem doesn't
provide handle callbacks metze (This used to be commit dfd07e6f890ebe11d77d39f65c3f6850c9b9c37e)
-rw-r--r--source4/ntvfs/ntvfs_util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs_util.c b/source4/ntvfs/ntvfs_util.c
index fec119b653d..d99d040378c 100644
--- a/source4/ntvfs/ntvfs_util.c
+++ b/source4/ntvfs/ntvfs_util.c
@@ -103,6 +103,9 @@ _PUBLIC_ NTSTATUS ntvfs_handle_new(struct ntvfs_module_context *ntvfs,
struct ntvfs_request *req,
struct ntvfs_handle **h)
{
+ if (!ntvfs->ctx->handles.create_new) {
+ return NT_STATUS_NOT_IMPLEMENTED;
+ }
return ntvfs->ctx->handles.create_new(ntvfs->ctx->handles.private_data, req, h);
}
@@ -171,6 +174,9 @@ _PUBLIC_ struct ntvfs_handle *ntvfs_handle_search_by_wire_key(struct ntvfs_modul
struct ntvfs_request *req,
const DATA_BLOB *key)
{
+ if (!ntvfs->ctx->handles.search_by_wire_key) {
+ return NULL;
+ }
return ntvfs->ctx->handles.search_by_wire_key(ntvfs->ctx->handles.private_data, req, key);
}