NULLify a route pointer after calling rtfree(9).
authormpi <mpi@openbsd.org>
Tue, 19 Jul 2016 14:49:46 +0000 (14:49 +0000)
committermpi <mpi@openbsd.org>
Tue, 19 Jul 2016 14:49:46 +0000 (14:49 +0000)
commitc1d0ee19c5e3cf81f0f675654def6ad908073aec
tree2dc3a4f4eb0c256301e8a51ff97e2d4c430ac6fe
parentbd2877f05a828bb9f12c0f6af0d721a03d473ef7
NULLify a route pointer after calling rtfree(9).

This should theoretically be a no-op because we're freeing the PCB
right after, but it helps us debug a reference count problem found
by otto@.

ok mikeb@
sys/netinet/in_pcb.c