diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-13 23:35:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-13 23:35:06 +0100 |
commit | bb3c36863e8001fc21a88bebfdead4da4c23e848 (patch) | |
tree | 68d479f11721abaac0713792d096b98aa04b9854 /drivers/net/ppp/pptp.c | |
parent | sch_gred: should not use GFP_KERNEL while holding a spinlock (diff) | |
download | linux-bb3c36863e8001fc21a88bebfdead4da4c23e848.tar.xz linux-bb3c36863e8001fc21a88bebfdead4da4c23e848.zip |
ipv6: Check dest prefix length on original route not copied one in rt6_alloc_cow().
After commit 8e2ec639173f325977818c45011ee176ef2b11f6 ("ipv6: don't
use inetpeer to store metrics for routes.") the test in rt6_alloc_cow()
for setting the ANYCAST flag is now wrong.
'rt' will always now have a plen of 128, because it is set explicitly
to 128 by ip6_rt_copy.
So to restore the semantics of the test, check the destination prefix
length of 'ort'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp/pptp.c')
0 files changed, 0 insertions, 0 deletions