From 9abb50a7e2da8b088cc5c0cb6227d68d98d52391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 16 Dec 2019 10:40:11 +0000 Subject: [PATCH] Clear path->msg on reset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mud.c b/mud.c index 97906b9..1d724d1 100644 --- a/mud.c +++ b/mud.c @@ -568,8 +568,8 @@ mud_reset_path(struct mud_path *path) { path->window = 0; path->ok = 0; - path->msg.sent = 0; path->loss_count = 0; + memset(&path->msg, 0, sizeof(path->msg)); } static void