]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: dfs: Cleanup, reformat calls to parse_msdfs_symlink()
authorJeremy Allison <jra@samba.org>
Tue, 28 Jan 2020 00:29:46 +0000 (16:29 -0800)
committerRalph Boehme <slow@samba.org>
Tue, 18 Feb 2020 21:08:32 +0000 (21:08 +0000)
Make parameter easier to change.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c

index 8f355d3a2c98773607386c1f1b6534213173b926..debc38a5307e474f32244f4be7070192092caded 100644 (file)
@@ -1099,7 +1099,11 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
                        return NT_STATUS_NO_MEMORY;
                }
 
-               if (!parse_msdfs_symlink(ctx, snum, tmp, &ref, &refcount)) {
+               if (!parse_msdfs_symlink(ctx,
+                               snum,
+                               tmp,
+                               &ref,
+                               &refcount)) {
                        TALLOC_FREE(frame);
                        return NT_STATUS_INVALID_PARAMETER;
                }
@@ -1170,7 +1174,9 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
        }
 
        /* We know this is a valid dfs link. Parse the targetpath. */
-       if (!parse_msdfs_symlink(ctx, snum, targetpath,
+       if (!parse_msdfs_symlink(ctx,
+                               snum,
+                               targetpath,
                                &jucn->referral_list,
                                &jucn->referral_count)) {
                DEBUG(3,("get_referred_path: failed to parse symlink "
@@ -1763,7 +1769,8 @@ static int form_junctions(TALLOC_CTX *ctx,
                if (is_msdfs_link_internal(ctx,
                                        conn,
                                        smb_dname, &link_target)) {
-                       if (parse_msdfs_symlink(ctx, snum,
+                       if (parse_msdfs_symlink(ctx,
+                                       snum,
                                        link_target,
                                        &jucn[cnt].referral_list,
                                        &jucn[cnt].referral_count)) {