summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-03-08 09:34:43 +0000
committermpi <mpi@openbsd.org>2017-03-08 09:34:43 +0000
commit78ea469dc3e55ebaad299f065594a258b9b58016 (patch)
tree777f567518444183e77e377fbd9bb17488d42b24 /sys
parentcopy rpi3 u-boot to the installed disk (diff)
downloadwireguard-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@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6.c4
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.