summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-12-24 02:16:33 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-12-24 02:16:33 +0100
commit960b06de85cc62c6187e6996b9253e34a1d7f68b (patch)
tree9335dd3c7ccb14b34dd29cf6526b54f2683f3120 /src/fastd.c
parent6bcbf234b143b5f8db9ae86b3ec51f6e22bfdb40 (diff)
downloadfastd-960b06de85cc62c6187e6996b9253e34a1d7f68b.tar
fastd-960b06de85cc62c6187e6996b9253e34a1d7f68b.zip
Fix segfault on session refresh for peers without remotes
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c4
1 files changed, 2 insertions, 2 deletions
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))