diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-08-11 19:44:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:37 -0400 |
commit | d1aa62f15b511457af2233150c960dc1fd02769b (patch) | |
tree | 8f5b1055de7d8de7551eb7f559d644b846938aea /net/decnet/dn_rules.c | |
parent | d880309ae17783c27016bf4f903782d322d0a2a1 (diff) |
[DECNET] Fix to decnet rules compare function
Here is a fix to the DECnet rules compare function where we used 32bit
values rather than 16bit values. Spotted by Patrick McHardy.
Signed-off-by: Steven Whitehouse <steve@chygwyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_rules.c')
-rw-r--r-- | net/decnet/dn_rules.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index c8d9411e5943..977bb56c3ce4 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c | |||
@@ -197,10 +197,10 @@ static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, | |||
197 | return 0; | 197 | return 0; |
198 | #endif | 198 | #endif |
199 | 199 | ||
200 | if (tb[FRA_SRC] && (r->src != nla_get_u32(tb[FRA_SRC]))) | 200 | if (tb[FRA_SRC] && (r->src != nla_get_u16(tb[FRA_SRC]))) |
201 | return 0; | 201 | return 0; |
202 | 202 | ||
203 | if (tb[FRA_DST] && (r->dst != nla_get_u32(tb[FRA_DST]))) | 203 | if (tb[FRA_DST] && (r->dst != nla_get_u16(tb[FRA_DST]))) |
204 | return 0; | 204 | return 0; |
205 | 205 | ||
206 | return 1; | 206 | return 1; |