From 72b8ec6a93885c943d8303303e268bd5ec286a46 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 28 Aug 2013 15:00:24 +0200 Subject: ec25519: ensure that there is always a handshake enqueued after sending a handshake finish This ensures that the handshake is repeated in case the finish packet is lost. --- src/protocol_ec25519_fhmqvc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/protocol_ec25519_fhmqvc.c') diff --git a/src/protocol_ec25519_fhmqvc.c b/src/protocol_ec25519_fhmqvc.c index a420e8d..889793b 100644 --- a/src/protocol_ec25519_fhmqvc.c +++ b/src/protocol_ec25519_fhmqvc.c @@ -432,7 +432,9 @@ static bool establish(fastd_context_t *ctx, fastd_peer_t *peer, const fastd_meth fastd_task_schedule_keepalive(ctx, peer, ctx->conf->keepalive_interval*1000); - if (!initiator) + if (initiator) + fastd_peer_schedule_handshake(ctx, peer); + else send_empty(ctx, peer, &peer->protocol_state->session); return true; -- cgit v1.2.3