Do not always try to rtfree(9) route entries inside rtdeletemsg(9).
authormpi <mpi@openbsd.org>
Mon, 26 Jan 2015 11:36:38 +0000 (11:36 +0000)
committermpi <mpi@openbsd.org>
Mon, 26 Jan 2015 11:36:38 +0000 (11:36 +0000)
commitd3d663ed24d568c9974faed86764cfb1682887e9
treeb65fd21ac4a3ab788140c9752af859e8d6198ff7
parentd64e12548ca202bf5a32c2a40e2f105d3f8c4f5f
Do not always try to rtfree(9) route entries inside rtdeletemsg(9).

Instead check the error code returned by this function and let the
caller free the route entry when appropriate.

ok bluhm@
sys/net/route.c
sys/netinet/if_ether.c