From 31b12622cf87dc6f7263550120973b6c56e17ba4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 7 May 2010 06:54:16 -0700 Subject: When tearing down the connection make sure we close all files before freeing the global context, as we close access to the locking db before freeing the global context. Jeremy. --- source3/smbd/smb2_tcon.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/smbd/smb2_tcon.c') diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index 0f765d662a..084ded95a4 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -128,6 +128,7 @@ static int smbd_smb2_tcon_destructor(struct smbd_smb2_tcon *tcon) DLIST_REMOVE(tcon->session->tcons.list, tcon); if (tcon->compat_conn) { + set_current_service(tcon->compat_conn, 0, true); close_cnum(tcon->compat_conn, tcon->session->vuid); } -- cgit