diff --git a/source/lib/socket/connect.c b/source/lib/socket/connect.c index 244fdcbb063..f174b7c09d1 100644 --- a/source/lib/socket/connect.c +++ b/source/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);