mirror of
https://github.com/samba-team/samba.git
synced 2025-11-18 00:23:50 +03:00
r13128: init the private_data to NULL
so so that we don't crash when ntvfs_connect() fails metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9222fa3590
commit
96680f1200
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user