From 8b4da058bcc49a91b332d2999a34e0bb45e0f680 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 21 May 2006 08:29:56 +0000 Subject: r15768: make it possible that the caller of the ntvfs_subsystem doesn't provide handle callbacks metze (This used to be commit dfd07e6f890ebe11d77d39f65c3f6850c9b9c37e) --- source4/ntvfs/ntvfs_util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/ntvfs/ntvfs_util.c') diff --git a/source4/ntvfs/ntvfs_util.c b/source4/ntvfs/ntvfs_util.c index fec119b653..d99d040378 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); } -- cgit