From 4e2435ab6dabc30b9158338d40fa21d25ad7c4b1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 9 Apr 2025 15:37:11 +0200 Subject: [PATCH] s4:libcli: use the correct talloc parent for smbcli_socket->hostname Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- source4/libcli/raw/clisocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c index 3c3f90364e2..f2a1aaaec0c 100644 --- a/source4/libcli/raw/clisocket.c +++ b/source4/libcli/raw/clisocket.c @@ -428,7 +428,7 @@ static void smbcli_sock_connect_recv_conn(struct composite_context *ctx) state->result->sock = talloc_steal(state->result, sock); state->result->port = port; - state->result->hostname = talloc_steal(sock, state->host_name); + state->result->hostname = talloc_steal(state->result, state->host_name); state->result->event.ctx = state->ctx->event_ctx; if (composite_nomem(state->result->event.ctx, state->ctx)) return; -- 2.47.3