Check mud->last_time as it can be zero
This commit is contained in:
4
mud.c
4
mud.c
@@ -933,8 +933,8 @@ int mud_push (struct mud *mud)
|
|||||||
struct path *path;
|
struct path *path;
|
||||||
|
|
||||||
for (path = mud->path; path; path = path->next) {
|
for (path = mud->path; path; path = path->next) {
|
||||||
|
if ((path->last_time) &&
|
||||||
if ((path->send.time > path->last_time) &&
|
(path->send.time > path->last_time) &&
|
||||||
(path->send.time-path->last_time > mud->down_timeout+path->rtt))
|
(path->send.time-path->last_time > mud->down_timeout+path->rtt))
|
||||||
path->up = 0;
|
path->up = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user