From 7134b64292a9e124d1280e61ef29810ac7e8c0b0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 30 Jun 2005 20:53:24 +0000 Subject: r8028: fix a crash bug in ulogoff, when the tree_connect failed before metze (This used to be commit a2e34475d723eb74fc58b9afa9f4a863b1277b0d) --- source4/smb_server/service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index fefd0692fc..ff6f34061c 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -80,6 +80,8 @@ static NTSTATUS make_connection_snum(struct smbsrv_request *req, 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 @@ static NTSTATUS make_connection_snum(struct smbsrv_request *req, 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; } -- cgit