From 3175c50a2312e206deb88b6260c9135d67df7cbe Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 29 Oct 2025 11:00:18 +0100 Subject: [PATCH] s3:client: Pass down a talloc context to do_message_op() Signed-off-by: Andreas Schneider Reviewed-by: Anoop C S --- source3/client/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index ac97577da04..873d192cd38 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -6404,7 +6404,7 @@ static int do_tar_op(const char *base_directory) Handle a message operation. ****************************************************************************/ -static int do_message_op(struct cli_credentials *creds) +static int do_message_op(TALLOC_CTX *mem_ctx, struct cli_credentials *creds) { NTSTATUS status; struct smb_transports ts = @@ -6415,7 +6415,7 @@ static int do_message_op(struct cli_credentials *creds) return 1; } - status = cli_connect_nb(talloc_tos(), + status = cli_connect_nb(mem_ctx, desthost, have_ip ? &dest_ss : NULL, &ts, name_type, @@ -6804,7 +6804,7 @@ int main(int argc,char *argv[]) rc = do_host_query(frame, lp_ctx, qhost); } else if (message) { - rc = do_message_op(creds); + rc = do_message_op(frame, creds); } else if (process(frame, base_directory)) { rc = 1; } -- 2.47.3