Commit 5066446f authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPV4]: Fix thinko in fib_find_alias

fib_find_alias is meant to return either an exact match or the
entry just before where it should be.  Currently it returns the
entry after that.  This patch fixes that.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6874d725
......@@ -448,7 +448,7 @@ static struct fib_alias *fib_find_alias(struct fib_node *fn, u8 tos, u32 prio)
if (prio <= fa->fa_info->fib_priority)
break;
}
return fa;
return prev_fa;
}
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment