summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/socket/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/socket/connect.c b/source4/lib/socket/connect.c
index 244fdcbb06..f174b7c09d 100644
--- a/source4/lib/socket/connect.c
+++ b/source4/lib/socket/connect.c
@@ -147,9 +147,9 @@ static void socket_connect_recv_addr(struct composite_context *ctx)
{
struct connect_state *state =
talloc_get_type(ctx->async.private_data, struct connect_state);
- const char *addr;
- state->ctx->status = resolve_name_recv(ctx, state, &addr);
+ state->ctx->status = resolve_name_recv(ctx, state,
+ &state->server_address);
if (!composite_is_ok(state->ctx)) return;
ctx = talloc_zero(state, struct composite_context);