From 96680f12001c67b6f6644654dfd74a86538d51b6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Jan 2006 12:19:13 +0000 Subject: [PATCH] r13128: init the private_data to NULL so so that we don't crash when ntvfs_connect() fails metze --- source/ntvfs/ntvfs_base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ntvfs/ntvfs_base.c b/source/ntvfs/ntvfs_base.c index e14ae71da20..63476c7feec 100644 --- a/source/ntvfs/ntvfs_base.c +++ b/source/ntvfs/ntvfs_base.c @@ -140,6 +140,8 @@ NTSTATUS ntvfs_init_connection(struct smbsrv_request *req, enum ntvfs_type type) ntvfs = talloc(ctx, struct ntvfs_module_context); NT_STATUS_HAVE_NO_MEMORY(ntvfs); + ntvfs->private_data = NULL; + ntvfs->ops = ntvfs_backend_byname(handlers[i], ctx->type); if (!ntvfs->ops) { DEBUG(1,("ntvfs_init_connection: failed to find backend=%s, type=%d\n",