From 1519fd273496e412a3bad908313d5d60cc9f4f57 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 3 May 2012 19:59:03 +0200 Subject: Fix critical error introduced by copy-and-pasting, another possible NULL dereference --- src/protocol_ec25519_fhmqvc.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/protocol_ec25519_fhmqvc.c b/src/protocol_ec25519_fhmqvc.c index 659b4d3..d5ccb60 100644 --- a/src/protocol_ec25519_fhmqvc.c +++ b/src/protocol_ec25519_fhmqvc.c @@ -318,18 +318,6 @@ static bool establish(fastd_context *ctx, const fastd_peer_config *peer_conf, co pr_verbose(ctx, "%I authorized as %P", address, peer); - /*if (backoff(ctx, peer)) { - if (initiator == ctx->conf->method->session_is_initiator(ctx, peer->protocol_state->session.method_state)) { - pr_verbose(ctx, "received repeated handshakes from %P, ignoring", peer); - } - else { - pr_verbose(ctx, "mismatched concurrent handshakes with %P, resetting", peer); - fastd_peer_reset(ctx, peer); - } - - return false; - }*/ - init_peer_state(ctx, peer); if (is_session_valid(ctx, &peer->protocol_state->session) && !is_session_valid(ctx, &peer->protocol_state->old_session)) { @@ -355,7 +343,7 @@ static bool establish(fastd_context *ctx, const fastd_peer_config *peer_conf, co fastd_peer_seen(ctx, peer); if (!fastd_peer_claim_address(ctx, peer, address)) { - pr_warn(ctx, "can't set address %I which is used by a fixed peer", ctx->resolve_returns->addr); + pr_warn(ctx, "can't set address %I which is used by a fixed peer", address); fastd_peer_reset(ctx, peer); return false; } -- cgit v1.2.3