From dff92dd471fe805ff562670179065de579967542 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Jul 2013 19:28:51 +0200 Subject: Fix assertion fail on key renewal handshakes with peers without remotes --- src/fastd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 37e841f..22f292f 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -446,10 +446,10 @@ static inline void schedule_handshake(fastd_context_t *ctx, fastd_peer_t *peer) } static void send_handshake(fastd_context_t *ctx, fastd_peer_t *peer) { - if (!peer->next_remote) - exit_bug(ctx, "send_handshake: no remote"); - if (!fastd_peer_is_established(peer)) { + if (!peer->next_remote) + exit_bug(ctx, "send_handshake: no remote"); + fastd_peer_claim_address(ctx, peer, NULL, NULL, &peer->next_remote->address); fastd_peer_reset_socket(ctx, peer); } -- cgit v1.2.3