]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Add TALLOC_CTX * parameter to parse_dfs_path().
authorJeremy Allison <jra@samba.org>
Wed, 10 Aug 2022 18:06:47 +0000 (11:06 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2022 18:19:30 +0000 (18:19 +0000)
Not yet used. Preparing to remove 'struct dfs_path'.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15144

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

index a52a2449965f28f6b198254495487719b55d8ef4..abe447dd056657a3ba36104a590e2f5ca935eb27 100644 (file)
@@ -58,7 +58,8 @@
  JRA.
 **********************************************************************/
 
-static NTSTATUS parse_dfs_path(connection_struct *conn,
+static NTSTATUS parse_dfs_path(TALLOC_CTX *ctx,
+                               connection_struct *conn,
                                const char *pathname,
                                bool allow_broken_path,
                                struct dfs_path *pdp) /* MUST BE TALLOCED */
@@ -870,8 +871,11 @@ NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
-       status = parse_dfs_path(conn, path_in,
-                               allow_broken_path, pdp);
+       status = parse_dfs_path(ctx,
+                               conn,
+                               path_in,
+                               allow_broken_path,
+                               pdp);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(pdp);
                return status;
@@ -1020,7 +1024,11 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
 
        *self_referralp = False;
 
-       status = parse_dfs_path(NULL, dfs_path, allow_broken_path, pdp);
+       status = parse_dfs_path(frame,
+                               NULL,
+                               dfs_path,
+                               allow_broken_path,
+                               pdp);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(frame);
                return status;
@@ -1269,7 +1277,11 @@ bool create_junction(TALLOC_CTX *ctx,
        if (!pdp) {
                return False;
        }
-       status = parse_dfs_path(NULL, dfs_path, allow_broken_path, pdp);
+       status = parse_dfs_path(ctx,
+                               NULL,
+                               dfs_path,
+                               allow_broken_path,
+                               pdp);
        if (!NT_STATUS_IS_OK(status)) {
                return False;
        }