diff options
-rw-r--r-- | net/ipv6/fib6_rules.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index d587dde5897e..0862809ffcf7 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c | |||
@@ -142,8 +142,7 @@ static int fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb, | |||
142 | int err = -EINVAL; | 142 | int err = -EINVAL; |
143 | struct fib6_rule *rule6 = (struct fib6_rule *) rule; | 143 | struct fib6_rule *rule6 = (struct fib6_rule *) rule; |
144 | 144 | ||
145 | if (frh->src_len > 128 || frh->dst_len > 128 || | 145 | if (frh->src_len > 128 || frh->dst_len > 128) |
146 | (frh->tos & ~IPV6_FLOWINFO_MASK)) | ||
147 | goto errout; | 146 | goto errout; |
148 | 147 | ||
149 | if (rule->action == FR_ACT_TO_TBL) { | 148 | if (rule->action == FR_ACT_TO_TBL) { |