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)
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

Simple merge