s3: Remove the smbd_server_conn ref from dfs_redirect
authorVolker Lendecke <vl@samba.org>
Sat, 24 Sep 2011 03:35:20 +0000 (05:35 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 26 Sep 2011 12:59:12 +0000 (14:59 +0200)
source3/smbd/msdfs.c

index a197f33f111a4176232f9d2a9b84b93dc8d0fe50..abb0ebce5c2f29d839634de464b33a926fdec370 100644 (file)
@@ -720,6 +720,7 @@ static NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
                        connection_struct *conn,
                        const char *path_in,
                        bool search_wcard_flag,
+                       bool allow_broken_path,
                        char **pp_path_out,
                        bool *ppath_contains_wcard)
 {
@@ -731,7 +732,7 @@ static NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
        }
 
        status = parse_dfs_path(conn, path_in, search_wcard_flag,
-                               !smbd_server_conn->using_smb2, pdp,
+                               allow_broken_path, pdp,
                        ppath_contains_wcard);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(pdp);
@@ -1810,6 +1811,7 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx,
                                        conn,
                                        name_in,
                                        allow_wcards,
+                                       !smbd_server_conn->using_smb2,
                                        pp_name_out,
                                        &path_contains_wcard);