svn commit: samba r8028 - in branches/SAMBA_4_0/source/smb_server: .

metze at samba.org metze at samba.org
Thu Jun 30 20:53:25 GMT 2005


Author: metze
Date: 2005-06-30 20:53:24 +0000 (Thu, 30 Jun 2005)
New Revision: 8028

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

Log:
fix a crash bug in ulogoff, when the tree_connect failed before

metze
Modified:
   branches/SAMBA_4_0/source/smb_server/service.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/service.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/service.c	2005-06-30 20:16:16 UTC (rev 8027)
+++ branches/SAMBA_4_0/source/smb_server/service.c	2005-06-30 20:53:24 UTC (rev 8028)
@@ -80,6 +80,8 @@
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(0, ("ntvfs_init_connection failed for service %s\n", 
 			  lp_servicename(tcon->service)));
+		req->tcon = NULL;
+		talloc_free(tcon);
 		return status;
 	}
 
@@ -87,6 +89,8 @@
 	status = ntvfs_connect(req, lp_servicename(snum));
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(0,("make_connection: NTVFS make connection failed!\n"));
+		req->tcon = NULL;
+		talloc_free(tcon);
 		return status;
 	}
 



More information about the samba-cvs mailing list