From d5297b8a70a593cc3d65d499ddb1a7909fa16782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Tue, 20 Sep 2016 09:29:50 +0000 Subject: [PATCH] Don't wait too long to resend keyx if no answer --- mud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mud.c b/mud.c index 88b633d..2b0d81a 100644 --- a/mud.c +++ b/mud.c @@ -979,6 +979,8 @@ void mud_recv_keyx (struct mud *mud, struct path *path, uint64_t now, key->aes = (shared_recv.public.send[MUD_PKEY_SIZE-1] == 1) && (shared_recv.public.recv[MUD_PKEY_SIZE-1] == 1); + + mud->crypto.time = now; } int mud_pull (struct mud *mud) @@ -1154,7 +1156,6 @@ int mud_push (struct mud *mud) if ((!mud->crypto.time) || (now-mud->crypto.time >= MUD_KEYX_TIMEOUT)) { mud_ctrl_path(mud, mud_keyx, path, now); - mud->crypto.time = now; continue; }