diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2004-09-22 23:18:34 -0700 |
|---|---|---|
| committer | David S. Miller <davem@kernel.bkbits.net> | 2004-09-22 23:18:34 -0700 |
| commit | 5066446ff2a1448a2c9f40fe4e24e18afde2d689 (patch) | |
| tree | 73ab891ad54d54a073ee11880271c53adfdcdc3f | |
| parent | 6874d725c31099662b52df53e41a80c30d138fc0 (diff) | |
[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: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/ipv4/fib_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index ea2d7c675e42..deb43438f48f 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c @@ -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; } |
