mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
smbd: let create_conn_struct_as_root() fill in conn->origpath
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
0e2786a91f
commit
f407a86b74
@ -357,6 +357,13 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
talloc_free(conn->origpath);
|
||||
conn->origpath = talloc_strdup(conn, conn->connectpath);
|
||||
if (conn->origpath == NULL) {
|
||||
conn_free(conn);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
conn->fs_capabilities = SMB_VFS_FS_CAPABILITIES(conn, &conn->ts_res);
|
||||
conn->tcon_done = true;
|
||||
*pconn = talloc_move(ctx, &conn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user