Check mud->last_time as it can be zero

This commit is contained in:
angt
2016-04-05 06:25:50 +00:00
parent 85367eff80
commit 22e05b0742

4
mud.c
View File

@@ -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;