From 22e05b07427c2a0b395eec1cbf682fb8bad73a44 Mon Sep 17 00:00:00 2001 From: angt Date: Tue, 5 Apr 2016 06:25:50 +0000 Subject: [PATCH] Check mud->last_time as it can be zero --- mud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mud.c b/mud.c index b02a605..c19895c 100644 --- a/mud.c +++ b/mud.c @@ -933,8 +933,8 @@ int mud_push (struct mud *mud) struct path *path; for (path = mud->path; path; path = path->next) { - - if ((path->send.time > path->last_time) && + if ((path->last_time) && + (path->send.time > path->last_time) && (path->send.time-path->last_time > mud->down_timeout+path->rtt)) path->up = 0;