From: Stefan Metzmacher Date: Thu, 10 Apr 2025 14:48:48 +0000 (+0200) Subject: s4:libcli: pass struct loadparm_context to smb_composite_connect() X-Git-Tag: tevent-0.17.0~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e9441673add6bb39e19d1dacc5b8dc4c45fdeb;p=thirdparty%2Fsamba.git s4:libcli: pass struct loadparm_context to smb_composite_connect() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c index ea2ec2238a7..228c77ed33f 100644 --- a/source4/libcli/raw/clitree.c +++ b/source4/libcli/raw/clitree.c @@ -219,7 +219,7 @@ NTSTATUS smbcli_tree_full_connection(TALLOC_CTX *parent_ctx, io.in.options = *options; io.in.session_options = *session_options; - status = smb_composite_connect(&io, parent_ctx, resolve_ctx, ev); + status = smb_composite_connect(&io, parent_ctx, lp_ctx, resolve_ctx, ev); if (NT_STATUS_IS_OK(status)) { *ret_tree = io.out.tree; } diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c index 28704016b94..e8456efe9cd 100644 --- a/source4/libcli/smb_composite/connect.c +++ b/source4/libcli/smb_composite/connect.c @@ -517,6 +517,7 @@ NTSTATUS smb_composite_connect_recv(struct composite_context *c, TALLOC_CTX *mem sync version of smb_composite_connect */ NTSTATUS smb_composite_connect(struct smb_composite_connect *io, TALLOC_CTX *mem_ctx, + struct loadparm_context *lp_ctx, struct resolve_context *resolve_ctx, struct tevent_context *ev) { diff --git a/source4/libcli/smb_composite/smb_composite.h b/source4/libcli/smb_composite/smb_composite.h index 7c1e87aa08f..ecfd5e0d39c 100644 --- a/source4/libcli/smb_composite/smb_composite.h +++ b/source4/libcli/smb_composite/smb_composite.h @@ -158,6 +158,7 @@ struct composite_context *smb_composite_connect_send(struct smb_composite_connec struct tevent_context *event_ctx); NTSTATUS smb_composite_connect_recv(struct composite_context *c, TALLOC_CTX *mem_ctx); NTSTATUS smb_composite_connect(struct smb_composite_connect *io, TALLOC_CTX *mem_ctx, + struct loadparm_context *lp_ctx, struct resolve_context *resolve_ctx, struct tevent_context *ev);