ipv6: fix the check when handle RA
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 10 Jul 2014 10:02:46 +0000 (18:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jul 2014 23:56:33 +0000 (16:56 -0700)
commitb6428817190c5444294e0cc45bd571bfafbbb537
treed9b2f936aed56508f05a784a5e5ba17d75822b56
parentff32045e7a1ec9eb35dbf057374b1bc5bf99bc1f
ipv6: fix the check when handle RA

d9333196572(ipv6:  Allow accepting RA from local IP addresses.) made the wrong
check, whether or not to accept RA with source-addr found on local machine, when
accept_ra_from_local is 0.

Fixes: d9333196572(ipv6:  Allow accepting RA from local IP addresses.)
Cc: Ben Greear <greearb@candelatech.com>
Cc: Hannes Frederic Sowa <hannes@redhat.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c