summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/protocol_ec25519_fhmqvc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol_ec25519_fhmqvc.c b/src/protocol_ec25519_fhmqvc.c
index 96ee428..31cf2b6 100644
--- a/src/protocol_ec25519_fhmqvc.c
+++ b/src/protocol_ec25519_fhmqvc.c
@@ -145,6 +145,7 @@ static inline void check_session_refresh(fastd_context *ctx, fastd_peer *peer) {
if (!session->refreshing && ctx->conf->method->session_is_initiator(ctx, session->method_state) && ctx->conf->method->session_want_refresh(ctx, session->method_state)) {
pr_debug(ctx, "refreshing session with %P", peer);
+ session->handshakes_cleaned = true;
session->refreshing = true;
fastd_task_schedule_handshake(ctx, peer, 0);
}