rtrequest1(9) error code path cleanup.
authormpi <mpi@openbsd.org>
Mon, 22 Jun 2015 09:07:11 +0000 (09:07 +0000)
committermpi <mpi@openbsd.org>
Mon, 22 Jun 2015 09:07:11 +0000 (09:07 +0000)
commitba00f3f67464177809bb72c3cc1d43d7ab120f94
treefec5484da56febb64ab919c4671af7c6eb4dbdfa
parent298fcbacf199cbb7efc89ecaf55db3a41432c237
rtrequest1(9) error code path cleanup.

Pass the length to free(9), do not violate the radix/route layer and
set the gateway of a route a bit later to simplify error code path.

ok claudio@
sys/net/route.c