diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-28 15:00:24 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-28 15:45:43 +0200 |
commit | 72b8ec6a93885c943d8303303e268bd5ec286a46 (patch) | |
tree | 426fbb37dba45838ff0022a4fedeff224295608a /src/protocol_ec25519_fhmqvc.c | |
parent | 1b9709bae3718efc397fc824fb8a0ec5fac31bd1 (diff) | |
download | fastd-72b8ec6a93885c943d8303303e268bd5ec286a46.tar fastd-72b8ec6a93885c943d8303303e268bd5ec286a46.zip |
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.
Diffstat (limited to 'src/protocol_ec25519_fhmqvc.c')
-rw-r--r-- | src/protocol_ec25519_fhmqvc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |