From: Stefan Metzmacher Date: Wed, 9 Apr 2025 13:37:11 +0000 (+0200) Subject: s4:libcli: use the correct talloc parent for smbcli_socket->hostname X-Git-Tag: tevent-0.17.0~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e2435ab6dabc30b9158338d40fa21d25ad7c4b1;p=thirdparty%2Fsamba.git s4:libcli: use the correct talloc parent for smbcli_socket->hostname Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- 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;