]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:libcli: use the correct talloc parent for smbcli_socket->hostname
authorStefan Metzmacher <metze@samba.org>
Wed, 9 Apr 2025 13:37:11 +0000 (15:37 +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

index 3c3f90364e2d56716f0df723bdb078aa8e347d99..f2a1aaaec0ca86a8a9ecf490419d90d1deedca82 100644 (file)
@@ -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;