]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libcli: pass struct loadparm_context to smbcli_sock_connect_send()
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/raw/clisocket.c
source4/libcli/smb2/connect.c
source4/libcli/smb_composite/connect.c
source4/libcli/smb_composite/connect_nego.c

index 16406393a8e67a2701ad578d225dd259023fb8a4..ea2b3bfb312bb3c790e24c984808c8e948e1d059 100644 (file)
@@ -321,6 +321,7 @@ struct composite_context *smbcli_sock_connect_send(TALLOC_CTX *mem_ctx,
                                                   const char *host_addr,
                                                   const struct smbcli_options *options,
                                                   const char *host_name,
+                                                  struct loadparm_context *lp_ctx,
                                                   struct resolve_context *resolve_ctx,
                                                   struct tevent_context *event_ctx,
                                                   const char *socket_options,
@@ -487,7 +488,7 @@ NTSTATUS smbcli_sock_connect(TALLOC_CTX *mem_ctx,
 {
        struct composite_context *c =
                smbcli_sock_connect_send(mem_ctx, host_addr, options,
-                                        host_name, resolve_ctx,
+                                        host_name, lp_ctx, resolve_ctx,
                                         event_ctx, socket_options,
                                         calling, called);
        return smbcli_sock_connect_recv(c, mem_ctx, result);
index 8e18c85a4a4842996053a1167e938a200cb90632..b1c2b56a3e07bd9291dc4229bef58fede8c553bc 100644 (file)
@@ -131,7 +131,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx,
        }
 
        creq = smbcli_sock_connect_send(state, NULL, &state->options,
-                                       state->host, state->resolve_ctx,
+                                       state->host, lp_ctx, state->resolve_ctx,
                                        state->ev, state->socket_options,
                                        &state->calling,
                                        &state->called);
index 92bd99f419fa3e3d0d6aa89d507623de55c4177a..dff5d9cb5dbf61db56b985cc8bc829db2bc2ae1f 100644 (file)
@@ -477,6 +477,7 @@ struct composite_context *smb_composite_connect_send(struct smb_composite_connec
                                               NULL,
                                               &io->in.options,
                                               io->in.dest_host, 
+                                              lp_ctx,
                                               resolve_ctx, c->event_ctx, 
                                               io->in.socket_options,
                                               &state->calling,
index 9364e2ade09c53cc91162fc559e26f9d5343ded0..4e55dae703321d1281440c3e9e86c9dd3b3d9a69 100644 (file)
@@ -84,6 +84,7 @@ struct tevent_req *smb_connect_nego_send(TALLOC_CTX *mem_ctx,
                                        state->dest_address,
                                        &state->options,
                                        state->dest_hostname,
+                                       lp_ctx,
                                        state->resolve_ctx,
                                        state->ev,
                                        state->socket_options,