Prevent a use-after-free by not updating an ARP entry that has been
authormpi <mpi@openbsd.org>
Thu, 14 Jul 2016 14:01:40 +0000 (14:01 +0000)
committermpi <mpi@openbsd.org>
Thu, 14 Jul 2016 14:01:40 +0000 (14:01 +0000)
commitb3aa851930ed69a5a9c2945ad3c15b6e895afb3f
tree9e6e5ab4deab18ac51124aaed0b3610bb71f4fac
parent4bd79cf4ebe4a9f9b9ccf7b5a617caf261a01ef5
Prevent a use-after-free by not updating an ARP entry that has been
removed from the table.

Currently the storage for L2 addresses is freed when an entry is
removed from the table.  That means that we cannot access this
chunk of memory between RTM_DELETE and rtfree(9).

Note that this doesn't apply to MPLS because the associated storage
is currently released by the last rtfree(9).

ok mikeb@
sys/netinet/if_ether.c