From 960b06de85cc62c6187e6996b9253e34a1d7f68b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 24 Dec 2013 02:16:33 +0100 Subject: Fix segfault on session refresh for peers without remotes --- src/fastd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fastd.c b/src/fastd.c index 2ea98f2..c03a730 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -445,14 +445,14 @@ static void handle_handshake_queue(fastd_context_t *ctx) { if (!fastd_peer_may_connect(ctx, peer)) { if (peer->next_remote != NULL) { - pr_debug(ctx, "disabling handshakes with %P because of the peer limit", peer); + pr_debug(ctx, "temporarily disabling handshakes with %P", peer); peer->next_remote = NULL; } return; } - if (peer->next_remote) { + if (peer->next_remote || fastd_peer_is_established(peer)) { send_handshake(ctx, peer); if (fastd_peer_is_established(peer)) -- cgit v1.2.3