diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-08 09:34:44 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-03-08 09:34:44 +0000 |
commit | b5f9745e65ebe382a716c2c1cc17c580e6fa220d (patch) | |
tree | 3b41fb53d70c91b19b182883c800e5c65e4c6ea0 /sys/netinet6/nd6.c | |
parent | 1cd55184ca3f39ac0e5ea776e6340d94b36146f7 (diff) |
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/netinet6/nd6.c')
-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. |