diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-01-25 12:19:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:28 -0500 |
commit | 60954d80e1afd0527a5fa426bf02e9359ed19890 (patch) | |
tree | 73b52c9b37488bab2a170bbede86d0a8e65b9bf5 | |
parent | 80fd9d9769ce6d511f60510edcf0795294be53f7 (diff) | |
download | samba-60954d80e1afd0527a5fa426bf02e9359ed19890.tar.gz samba-60954d80e1afd0527a5fa426bf02e9359ed19890.tar.bz2 samba-60954d80e1afd0527a5fa426bf02e9359ed19890.zip |
r13128: init the private_data to NULL
so so that we don't crash when ntvfs_connect() fails
metze
(This used to be commit 96680f12001c67b6f6644654dfd74a86538d51b6)
-rw-r--r-- | source4/ntvfs/ntvfs_base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs_base.c b/source4/ntvfs/ntvfs_base.c index e14ae71da2..63476c7fee 100644 --- a/source4/ntvfs/ntvfs_base.c +++ b/source4/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", |