diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 6a2f756..0524850 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -544,11 +544,7 @@ static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, NT_STATUS_OBJECT_PATH_NOT_FOUND)) { return status; } - - /* Create an smb_fname to use below. */ - status = create_synthetic_smb_fname(ctx, pdp->reqpath, NULL, - NULL, &smb_fname); - if (!NT_STATUS_IS_OK(status)) { + if (smb_fname == NULL || smb_fname->base_name == NULL) { return status; } }