[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-cvs
Subject:    svn commit: samba r8028 - in branches/SAMBA_4_0/source/smb_server: .
From:       metze () samba ! org
Date:       2005-06-30 20:53:25
Message-ID: 20050630205325.486AC162C37 () lists ! samba ! org
[Download RAW message or body]

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;
 	}
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic