svn commit: samba r13128 - in branches/SAMBA_4_0/source/ntvfs: .

metze at samba.org metze at samba.org
Wed Jan 25 12:19:14 GMT 2006


Author: metze
Date: 2006-01-25 12:19:13 +0000 (Wed, 25 Jan 2006)
New Revision: 13128

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13128

Log:
init the private_data to NULL

so so that we don't crash when ntvfs_connect() fails

metze
Modified:
   branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c	2006-01-25 05:27:23 UTC (rev 13127)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_base.c	2006-01-25 12:19:13 UTC (rev 13128)
@@ -140,6 +140,8 @@
 		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",



More information about the samba-cvs mailing list