From 577a5639d3fc008480e988864bb4fb59939bc2d8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 20 Nov 2005 17:33:08 +0000 Subject: [PATCH] r11811: Revert 11808, this broke the selftest. No idea why though. Why do we to the resolve_name if it's not used? I know this is my code, but I don't understand why it breaks tests. Volker --- source/lib/socket/connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/socket/connect.c b/source/lib/socket/connect.c index f174b7c09d1..244fdcbb063 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, - &state->server_address); + state->ctx->status = resolve_name_recv(ctx, state, &addr); if (!composite_is_ok(state->ctx)) return; ctx = talloc_zero(state, struct composite_context);