diff options
author | 2017-03-08 09:34:43 +0000 | |
---|---|---|
committer | 2017-03-08 09:34:43 +0000 | |
commit | 78ea469dc3e55ebaad299f065594a258b9b58016 (patch) | |
tree | 777f567518444183e77e377fbd9bb17488d42b24 | |
parent | copy rpi3 u-boot to the installed disk (diff) | |
download | wireguard-openbsd-78ea469dc3e55ebaad299f065594a258b9b58016.tar.xz wireguard-openbsd-78ea469dc3e55ebaad299f065594a258b9b58016.zip |
Always invalidate ND entries in nd6_free().
This way RTF_CACHED entries are properly flushed. Fix a regression
reported by weerd@ and also tested by matthieu@.
ok bluhm@
-rw-r--r-- | sys/netinet6/nd6.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 5ed66239804..b35888b0e10 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.205 2017/03/03 08:01:59 mpi Exp $ */ +/* $OpenBSD: nd6.c,v 1.206 2017/03/08 09:34:43 mpi Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -748,6 +748,8 @@ nd6_free(struct rtentry *rt, int gc) splsoftassert(IPL_SOFTNET); + nd6_invalidate(rt); + /* * we used to have pfctlinput(PRC_HOSTDEAD) here. * even though it is not harmful, it was not really necessary. |