]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libcli: pass struct loadparm_context to smbcli_tree_full_connection()
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Apr 2025 14:48:48 +0000 (16:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Apr 2025 10:17:30 +0000 (10:17 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/libcli/cliconnect.c
source4/libcli/raw/clitree.c
source4/torture/gentest.c

index 4e0c16b8ce733d37961d00b54c94ab27c68728a8..37956eebbc1847f881440d04e2989afeafff39ab 100644 (file)
@@ -185,7 +185,10 @@ NTSTATUS smbcli_full_connection(TALLOC_CTX *parent_ctx,
                                             &tree, host,
                                             sharename, devtype,
                                                 socket_options,
-                                            credentials, resolve_ctx, ev,
+                                            credentials,
+                                            lp_ctx,
+                                            resolve_ctx,
+                                            ev,
                                             options,
                                             session_options,
                                                 gensec_settings);
index 9c02bd063158f4c3d3d9746d300a5688d21fbef1..ea2ec2238a77f6506faad8f09de22022ad7dfb34 100644 (file)
@@ -188,6 +188,7 @@ NTSTATUS smbcli_tree_full_connection(TALLOC_CTX *parent_ctx,
                                     const char *service, const char *service_type,
                                         const char *socket_options,
                                     struct cli_credentials *credentials,
+                                    struct loadparm_context *lp_ctx,
                                     struct resolve_context *resolve_ctx,
                                     struct tevent_context *ev,
                                     struct smbcli_options *options,
index 610403c2cd4a062aff79c965ad3011387db82088..5b12e315e9f2589e1291d91c7f430e06ecda892d 100644 (file)
@@ -246,6 +246,7 @@ static bool connect_servers(struct tevent_context *ev,
                                                                     servers[i].share_name, "A:",
                                                                         lpcfg_socket_options(lp_ctx),
                                                                     servers[i].credentials,
+                                                                    lp_ctx,
                                                                     lpcfg_resolve_context(lp_ctx), ev,
                                                                     &smb_options,
                                                                     &smb_session_options,