From: Stefan Metzmacher Date: Thu, 14 Jun 2018 05:27:43 +0000 (+0200) Subject: smbd: remember that the tcon completely setup connection_struct X-Git-Tag: tevent-0.9.37~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0186ff23246cd5332729a80118d87d6a47488259;p=thirdparty%2Fsamba.git smbd: remember that the tcon completely setup connection_struct Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 81fb6c1f145..54ab1604b79 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -436,6 +436,7 @@ typedef struct connection_struct { char *connectpath; char *origpath; struct smb_filename *cwd_fname; /* Working directory. */ + bool tcon_done; struct vfs_handle_struct *vfs_handles; /* for the new plugins */ diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 1a6454b5c2b..a143e6d23ca 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -358,6 +358,7 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx, } conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn, &conn->ts_res); + conn->tcon_done = true; *pconn = talloc_move(ctx, &conn); return NT_STATUS_OK; diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d0932c0e971..612c88357ef 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -879,6 +879,7 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn, dbgtext( "(pid %d)\n", (int)getpid() ); } + conn->tcon_done = true; return NT_STATUS_OK; err_root_exit: