Don't send packets to DOWN paths

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-05-05 12:48:57 +00:00
parent db7f48890a
commit 3668a2f9af

2
mud.c
View File

@@ -1524,7 +1524,7 @@ mud_send(struct mud *mud, const void *data, size_t size, unsigned tc)
for (unsigned i = 0; i < mud->count; i++) {
struct mud_path *path = &mud->paths[i];
if (path->state < MUD_DOWN)
if (path->state <= MUD_DOWN)
continue;
if (!path->r_ratemax)